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

Function resetSourceStores

src/queries/index.ts:258–266  ·  view source on GitHub ↗
(queryId: Id)

Source from the content-addressed store, hash-verified

256 );
257
258 const resetSourceStores = (queryId: Id): void =>
259 ifNotUndefined(mapGet(sourceStoreListenerIds, queryId), (queryStoreIds) => {
260 mapForEach(queryStoreIds, (sourceStore, listenerIds) =>
261 collForEach(listenerIds, (listenerId) =>
262 sourceStore.delListener(listenerId),
263 ),
264 );
265 collClear(queryStoreIds);
266 });
267
268 const synchronizeTransactions = (
269 queryId: Id,

Callers 2

setQueryDefinitionImplFunction · 0.70
delQueryDefinitionFunction · 0.70

Calls 5

mapGetFunction · 0.90
mapForEachFunction · 0.90
collForEachFunction · 0.90
collClearFunction · 0.90
delListenerMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…