MCPcopy Create free account
hub / github.com/TanStack/db / createUsersCollection

Function createUsersCollection

packages/db/tests/query/functional-variants.test-d.ts:58–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56]
57
58function createUsersCollection() {
59 return createCollection(
60 mockSyncCollectionOptions<User>({
61 id: `test-users`,
62 getKey: (user) => user.id,
63 initialData: sampleUsers,
64 }),
65 )
66}
67
68function createDepartmentsCollection() {
69 return createCollection(

Callers 1

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected