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

Function defaultMutation

packages/offline-transactions/tests/harness.ts:206–214  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

204 }
205
206 const defaultMutation: TestMutationFn = (params) => {
207 const mutations = params.transaction.mutations as Array<
208 PendingMutation<TestItem>
209 >
210
211 applyMutations(mutations)
212
213 return { ok: true, mutations }
214 }
215
216 const mutationFn: TestMutationFn = options.mutationFn ?? defaultMutation
217

Callers

nothing calls this directly

Calls 1

applyMutationsFunction · 0.85

Tested by

no test coverage detected