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

Function handleSort

docs/pseudo.esm.sh/tinybase@9.0.0/ui-solid-dom/index.js:1301–1310  ·  view source on GitHub ↗
(cellId2)

Source from the content-addressed store, hash-verified

1299 getValue2(onChange)?.(sortAndOffset2);
1300 };
1301 const handleSort = (cellId2) => {
1302 if (getValue2(sortOnClick)) {
1303 const [currentCellId, currentDescending, currentOffset] = sortAndOffset();
1304 setStateAndChange([
1305 cellId2,
1306 cellId2 == currentCellId ? !currentDescending : false,
1307 currentOffset
1308 ]);
1309 }
1310 };
1311 const handleChangeOffset = (offset2) => {
1312 const [currentCellId, currentDescending] = sortAndOffset();
1313 setStateAndChange([currentCellId, currentDescending, offset2]);

Callers

nothing calls this directly

Calls 3

getValue2Function · 0.70
setStateAndChangeFunction · 0.70
sortAndOffsetFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…