MCPcopy Index your code
hub / github.com/tinyplex/tinybase / getCellChange

Function getCellChange

src/store/index.ts:1107–1116  ·  view source on GitHub ↗
(tableId: Id, rowId: Id, cellId: Id)

Source from the content-addressed store, hash-verified

1105 };
1106
1107 const getCellChange: GetCellChange = (tableId: Id, rowId: Id, cellId: Id) =>
1108 ifNotUndefined(
1109 mapGet(mapGet(mapGet(changedCells, tableId), rowId), cellId),
1110 ([oldCell, newCell]) => [
1111 true,
1112 decodeIfJson(oldCell),
1113 decodeIfJson(newCell),
1114 ],
1115 () => [false, ...pairNew(getCell(tableId, rowId, cellId))] as CellChange,
1116 ) as CellChange;
1117
1118 const getValueChange: GetValueChange = (valueId: Id) =>
1119 ifNotUndefined(

Callers 6

ListenersFunction · 0.50
ListenersFunction · 0.50
ListenersFunction · 0.50
store.tsFile · 0.50
mergeable-store.tsFile · 0.50

Calls 4

mapGetFunction · 0.90
decodeIfJsonFunction · 0.90
pairNewFunction · 0.90
getCellFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…