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

Function mutationFn

packages/db/tests/collection-subscribe-changes.test.ts:289–292  ·  view source on GitHub ↗
({ transaction })

Source from the content-addressed store, hash-verified

287 })
288
289 const mutationFn: MutationFn = async ({ transaction }) => {
290 emitter.emit(`sync`, transaction.mutations)
291 return Promise.resolve()
292 }
293
294 // Subscribe to changes
295 const subscription = collection.subscribeChanges(callback)

Callers

nothing calls this directly

Calls 3

emitMethod · 0.80
getKeyFromItemMethod · 0.80
markReadyMethod · 0.80

Tested by

no test coverage detected