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

Function rowIdsChanged

src/store/index.ts:966–980  ·  view source on GitHub ↗
(
    tableId: Id,
    rowId: Id,
    addedOrRemoved: IdAddedOrRemoved,
  )

Source from the content-addressed store, hash-verified

964 ): ChangedIdsMap => idsChanged(changedTableIds, tableId, addedOrRemoved);
965
966 const rowIdsChanged = (
967 tableId: Id,
968 rowId: Id,
969 addedOrRemoved: IdAddedOrRemoved,
970 ): IdMap<number> | undefined =>
971 idsChanged(
972 mapEnsure(changedRowIds, tableId, mapNew) as ChangedIdsMap,
973 rowId,
974 addedOrRemoved,
975 ) &&
976 mapSet(
977 changedRowCount,
978 tableId,
979 mapEnsure(changedRowCount, tableId, () => 0) + addedOrRemoved,
980 );
981
982 const cellIdsChanged = (
983 tableId: Id,

Callers 4

setValidRowFunction · 0.70
applyRowDirectlyFunction · 0.70
setCellIntoNewRowFunction · 0.70
delValidCellFunction · 0.70

Calls 3

mapEnsureFunction · 0.90
mapSetFunction · 0.90
idsChangedFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…