MCPcopy Index your code
hub / github.com/TanStack/db / createUsersCollection

Function createUsersCollection

packages/db/tests/query/basic.test.ts:98–107  ·  view source on GitHub ↗
(autoIndex: `off` | `eager` = `eager`)

Source from the content-addressed store, hash-verified

96]
97
98function createUsersCollection(autoIndex: `off` | `eager` = `eager`) {
99 return createCollection(
100 mockSyncCollectionOptions<User>({
101 id: `test-users`,
102 getKey: (user) => user.id,
103 initialData: sampleUsers,
104 autoIndex,
105 }),
106 )
107}
108
109function createBasicTests(autoIndex: `off` | `eager`) {
110 describe(`with autoIndex ${autoIndex}`, () => {

Callers 1

createBasicTestsFunction · 0.70

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…