MCPcopy Create free account
hub / github.com/tinyplex/tinybase / getValueChange

Function getValueChange

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:1573–1581  ·  view source on GitHub ↗
(valueId)

Source from the content-addressed store, hash-verified

1571 () => [false, ...pairNew(getCell(tableId, rowId, cellId))]
1572 );
1573 const getValueChange = (valueId) => ifNotUndefined(
1574 mapGet(changedValues, valueId),
1575 ([oldValue, newValue]) => [
1576 true,
1577 decodeIfJson(oldValue),
1578 decodeIfJson(newValue)
1579 ],
1580 () => [false, ...pairNew(getValue(valueId))]
1581 );
1582 const callInvalidCellListeners = (mutator) => !collIsEmpty(invalidCells) && !collIsEmpty(invalidCellListeners[mutator]) ? collForEach(
1583 mutator ? mapClone3(invalidCells) : invalidCells,
1584 (rows, tableId) => collForEach(

Callers

nothing calls this directly

Calls 4

mapGetFunction · 0.70
decodeIfJsonFunction · 0.70
pairNewFunction · 0.70
getValueFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…