MCPcopy Create free account
hub / github.com/tinyplex/tinybase / setMiddleware

Function setMiddleware

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:2316–2332  ·  view source on GitHub ↗
(willSetContent, willSetTables, willSetTable, willSetRow, willSetCell, willSetValues, willSetValue, willDelTables, willDelTable, willDelRow, willDelCell, willDelValues, willDelValue, willApplyChanges, hasWillSetRowCallbacks)

Source from the content-addressed store, hash-verified

2314 transaction: collSize2(startTransactionListeners) + pairCollSize2(finishTransactionListeners)
2315 });
2316 const setMiddleware = (willSetContent, willSetTables, willSetTable, willSetRow, willSetCell, willSetValues, willSetValue, willDelTables, willDelTable, willDelRow, willDelCell, willDelValues, willDelValue, willApplyChanges, hasWillSetRowCallbacks) => middleware = [
2317 willSetContent,
2318 willSetTables,
2319 willSetTable,
2320 willSetRow,
2321 willSetCell,
2322 willSetValues,
2323 willSetValue,
2324 willDelTables,
2325 willDelTable,
2326 willDelRow,
2327 willDelCell,
2328 willDelValues,
2329 willDelValue,
2330 willApplyChanges,
2331 hasWillSetRowCallbacks
2332 ];
2333 const setInternalListeners = (preStartTransaction, preFinishTransaction, postFinishTransaction, cellChanged2, valueChanged2) => internalListeners = [
2334 preStartTransaction,
2335 preFinishTransaction,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…