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

Method constructor

packages/db/src/errors.ts:300–305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

298
299export class OnMutateMustBeSynchronousError extends TransactionError {
300 constructor() {
301 super(
302 `onMutate must be synchronous and cannot return a promise. Remove async/await or returned promises from onMutate.`,
303 )
304 this.name = `OnMutateMustBeSynchronousError`
305 }
306}
307
308export class TransactionNotPendingMutateError extends TransactionError {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected