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

Function setStateAndChange

src/ui-solid-dom/SortedTablePaginator.tsx:44–47  ·  view source on GitHub ↗
(sortAndOffset: SortAndOffset)

Source from the content-addressed store, hash-verified

42 ]),
43 );
44 const setStateAndChange = (sortAndOffset: SortAndOffset) => {
45 setSortAndOffset(sortAndOffset);
46 getValue(onChange)?.(sortAndOffset);
47 };
48 const handleSort = (cellId: Id | undefined) => {
49 if (getValue(sortOnClick)) {
50 const [currentCellId, currentDescending, currentOffset] = sortAndOffset();

Callers 3

handleSortFunction · 0.70
handleChangeOffsetFunction · 0.70
useSortingAndPaginationFunction · 0.50

Calls 1

getValueFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…