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

Function registerTransaction

packages/db/src/transactions.ts:184–189  ·  view source on GitHub ↗
(tx: Transaction<any>)

Source from the content-addressed store, hash-verified

182}
183
184function registerTransaction(tx: Transaction<any>) {
185 // Clear any stale work that may have been left behind if a previous mutate
186 // scope aborted before we could flush.
187 transactionScopedScheduler.clear(tx.id)
188 transactionStack.push(tx)
189}
190
191function unregisterTransaction(tx: Transaction<any>) {
192 // Always flush pending work for this transaction before removing it from

Callers 1

mutateMethod · 0.85

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected