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

Function processTable

src/common/definable.ts:151–169  ·  view source on GitHub ↗
(force?: boolean)

Source from the content-addressed store, hash-verified

149 };
150
151 const processTable = (force?: boolean) => {
152 onChanged(
153 () => {
154 collForEach(changedRowValues, ([, newRowValue], rowId) =>
155 mapSet(rowValues, rowId, newRowValue),
156 );
157 collForEach(changedSortKeys, (newSortKey, rowId) =>
158 mapSet(sortKeys, rowId, newSortKey),
159 );
160 },
161 changedRowValues,
162 changedSortKeys,
163 rowValues as IdMap<RowValue>,
164 sortKeys,
165 force,
166 );
167 collClear(changedRowValues);
168 collClear(changedSortKeys);
169 };
170
171 mapForEach(rowValues, processRow);
172 if (store.hasTable(tableId)) {

Callers 1

setDefinitionAndListenFunction · 0.70

Calls 3

collForEachFunction · 0.90
mapSetFunction · 0.90
collClearFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…