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

Function setCellIntoNewRow

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:1377–1389  ·  view source on GitHub ↗
(tableId, tableMap, rowId, cellId, validCell, skipMiddleware)

Source from the content-addressed store, hash-verified

1375 }
1376 );
1377 const setCellIntoNewRow = (tableId, tableMap, rowId, cellId, validCell, skipMiddleware) => ifNotUndefined(
1378 mapGet(tableMap, rowId),
1379 (rowMap) => setValidCell(tableId, rowId, rowMap, cellId, validCell, skipMiddleware),
1380 () => {
1381 const rowMap = mapNew();
1382 mapSet(tableMap, rowId, rowMap);
1383 rowIdsChanged(tableId, rowId, 1);
1384 objMap(
1385 addDefaultsToRow({ [cellId]: validCell }, tableId, rowId),
1386 (cell, cellId2) => setValidCell(tableId, rowId, rowMap, cellId2, cell, skipMiddleware)
1387 );
1388 }
1389 );
1390 const setValidValues = (values, forceDel) => ifTransformed(
1391 values,
1392 () => forceDel ? values : ifNotUndefined(

Callers 2

setPartialRowFunction · 0.70
setCellFunction · 0.70

Calls 7

mapGetFunction · 0.70
setValidCellFunction · 0.70
mapNewFunction · 0.70
mapSetFunction · 0.70
rowIdsChangedFunction · 0.70
objMapFunction · 0.70
addDefaultsToRowFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…