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

Function setValidRow

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:1318–1337  ·  view source on GitHub ↗
(tableId, tableMap, rowId, row, forceDel)

Source from the content-addressed store, hash-verified

1316 objIsEqual
1317 );
1318 const setValidRow = (tableId, tableMap, rowId, row, forceDel) => ifTransformed(
1319 row,
1320 () => forceDel ? row : ifNotUndefined(
1321 middleware[3],
1322 (willSetRow) => whileMutating(
1323 () => willSetRow(tableId, rowId, structuredClone(row))
1324 ),
1325 () => row
1326 ),
1327 (validRow) => mapMatch(
1328 mapEnsure(tableMap, rowId, () => {
1329 rowIdsChanged(tableId, rowId, 1);
1330 return mapNew();
1331 }),
1332 validRow,
1333 (rowMap, cellId, cell) => setValidCell(tableId, rowId, rowMap, cellId, cell),
1334 (rowMap, cellId) => delValidCell(tableId, tableMap, rowId, rowMap, cellId, forceDel)
1335 ),
1336 objIsEqual
1337 );
1338 const applyRowDirectly = (tableId, tableMap, rowId, row, skipMiddleware) => {
1339 mapMatch(
1340 mapEnsure(tableMap, rowId, () => {

Callers 4

setValidTableFunction · 0.70
delValidRowFunction · 0.70
setRowFunction · 0.70
addRowFunction · 0.70

Calls 9

ifTransformedFunction · 0.70
whileMutatingFunction · 0.70
willSetRowFunction · 0.70
mapMatchFunction · 0.70
mapEnsureFunction · 0.70
rowIdsChangedFunction · 0.70
mapNewFunction · 0.70
setValidCellFunction · 0.70
delValidCellFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…