MCPcopy
hub / github.com/tinyplex/tinybase / useCellState

Function useCellState

src/ui-solid/primitives.ts:672–680  ·  view source on GitHub ↗
(
  tableId: MaybeAccessor<Id>,
  rowId: MaybeAccessor<Id>,
  cellId: MaybeAccessor<Id>,
  storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
)

Source from the content-addressed store, hash-verified

670 );
671
672export const useCellState = (
673 tableId: MaybeAccessor<Id>,
674 rowId: MaybeAccessor<Id>,
675 cellId: MaybeAccessor<Id>,
676 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
677): [Accessor<CellOrUndefined>, (cell: Cell) => void] => [
678 useCell(tableId, rowId, cellId, storeOrStoreId),
679 useSetCellCallback(tableId, rowId, cellId, getArg, storeOrStoreId),
680];
681
682export const useHasValues = (
683 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,

Callers 3

StateFunction · 0.90
primitives.test.tsFile · 0.90
EditableCellViewFunction · 0.90

Calls 2

useCellFunction · 0.70
useSetCellCallbackFunction · 0.70

Tested by 1

StateFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…