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

Function createPostsCollection

packages/db/tests/query/composables.test.ts:97–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95}
96
97function createPostsCollection() {
98 return createCollection(
99 mockSyncCollectionOptions<Post>({
100 id: `test-posts`,
101 getKey: (post) => post.id,
102 initialData: samplePosts,
103 }),
104 )
105}
106
107describe(`Composables`, () => {
108 describe(`defineForRow`, () => {

Callers 1

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected