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

Function createUsersCollectionWithIndex

packages/db/tests/effect.test.ts:1310–1319  ·  view source on GitHub ↗
(initialData: Array<User>)

Source from the content-addressed store, hash-verified

1308 // data from the source collection to fill the window.
1309
1310 function createUsersCollectionWithIndex(initialData: Array<User>) {
1311 return createCollection(
1312 mockSyncCollectionOptions<User>({
1313 id: `test-users-indexed`,
1314 getKey: (user) => user.id,
1315 initialData,
1316 autoIndex: `eager`,
1317 }),
1318 )
1319 }
1320
1321 it(`should load more data when pipeline filters items from the orderBy window`, async () => {
1322 // 6 users, ordered by name asc, limit 3

Callers 1

effect.test.tsFile · 0.85

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…