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

Function idsChanged

src/store/index.ts:223–232  ·  view source on GitHub ↗
(
  changedIds: ChangedIdsMap,
  id: Id,
  addedOrRemoved: IdAddedOrRemoved,
)

Source from the content-addressed store, hash-verified

221type ChangedIdsMap3 = IdMap3<IdAddedOrRemoved>;
222
223const idsChanged = (
224 changedIds: ChangedIdsMap,
225 id: Id,
226 addedOrRemoved: IdAddedOrRemoved,
227): ChangedIdsMap =>
228 mapSet(
229 changedIds,
230 id,
231 mapGet(changedIds, id) == -addedOrRemoved ? undefined : addedOrRemoved,
232 ) as ChangedIdsMap;
233
234const contentOrChangesIsEqual = (
235 [tables1, values1]: Content | Changes,

Callers 4

tableIdsChangedFunction · 0.70
rowIdsChangedFunction · 0.70
cellIdsChangedFunction · 0.70
valueIdsChangedFunction · 0.70

Calls 2

mapSetFunction · 0.90
mapGetFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…