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

Function getOpenTransaction

packages/db-sqlite-persistence-core/src/persisted.ts:2212–2213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2210 sync: (params) => {
2211 const transactionStack: Array<OpenSyncTransaction<T, TKey>> = []
2212 const getOpenTransaction = () =>
2213 transactionStack[transactionStack.length - 1]
2214 let fullStartPromise: Promise<void> | null = null
2215 const cancelledLoadKeys = new Set<string>()
2216 const loadSubscriptionIds = new WeakMap<object, string>()

Callers 1

createWrappedSyncConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…