MCPcopy Index your code
hub / github.com/TanStack/db / setState

Method setState

packages/db/src/transactions.ts:239–245  ·  view source on GitHub ↗
(newState: TransactionState)

Source from the content-addressed store, hash-verified

237 }
238
239 setState(newState: TransactionState) {
240 this.state = newState
241
242 if (newState === `completed` || newState === `failed`) {
243 removeFromPendingList(this)
244 }
245 }
246
247 /**
248 * Execute collection operations within this transaction

Callers 10

rollbackMethod · 0.95
commitMethod · 0.95
removePendingMatchesFunction · 0.80
cleanupMatchFunction · 0.80
checkMatchFunction · 0.80
awaitMatchFunction · 0.80
createElectricSyncFunction · 0.80
listenFunction · 0.80
startFunction · 0.80

Calls 1

removeFromPendingListFunction · 0.85

Tested by

no test coverage detected