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

Function processTable

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:294–314  ·  view source on GitHub ↗
(force)

Source from the content-addressed store, hash-verified

292 }
293 };
294 const processTable = (force) => {
295 onChanged(
296 () => {
297 collForEach(
298 changedRowValues,
299 ([, newRowValue], rowId) => mapSet(rowValues, rowId, newRowValue)
300 );
301 collForEach(
302 changedSortKeys,
303 (newSortKey, rowId) => mapSet(sortKeys, rowId, newSortKey)
304 );
305 },
306 changedRowValues,
307 changedSortKeys,
308 rowValues,
309 sortKeys,
310 force
311 );
312 collClear(changedRowValues);
313 collClear(changedSortKeys);
314 };
315 mapForEach(rowValues, processRow);
316 if (store.hasTable(tableId)) {
317 arrayForEach(store.getRowIds(tableId), (rowId) => {

Callers 1

setDefinitionAndListenFunction · 0.70

Calls 3

collForEachFunction · 0.70
mapSetFunction · 0.70
collClearFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…