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

Function sync

packages/db/tests/query/live-query-collection.test.ts:327–330  ·  view source on GitHub ↗
({ begin, commit })

Source from the content-addressed store, hash-verified

325 const collection = createCollection<{ id: string }>({
326 sync: {
327 sync({ begin, commit }) {
328 begin()
329 commit()
330 },
331 },
332 getKey: (item) => item.id,
333 startSync: true,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected