MCPcopy
hub / github.com/tinyplex/tinybase / startTransaction

Function startTransaction

src/store/index.ts:1912–1921  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1910 };
1911
1912 const startTransaction = (): Store => {
1913 if (transactions != -1) {
1914 transactions++;
1915 }
1916 if (transactions == 1) {
1917 internalListeners[0]?.();
1918 callListeners(startTransactionListeners);
1919 }
1920 return store;
1921 };
1922
1923 const getTransactionChanges = (): Changes => getTransactionChangesImpl();
1924

Callers 1

transactionFunction · 0.70

Calls 1

callListenersFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…