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

Function useCellState

src/ui-react/hooks.ts:843–851  ·  view source on GitHub ↗
(
  tableId: Id,
  rowId: Id,
  cellId: Id,
  storeOrStoreId?: StoreOrStoreId,
)

Source from the content-addressed store, hash-verified

841 );
842
843export const useCellState: typeof useCellStateDecl = (
844 tableId: Id,
845 rowId: Id,
846 cellId: Id,
847 storeOrStoreId?: StoreOrStoreId,
848): [CellOrUndefined, (cell: Cell) => void] => [
849 useCell(tableId, rowId, cellId, storeOrStoreId),
850 useSetCellCallback(tableId, rowId, cellId, getArg, [], storeOrStoreId),
851];
852
853export const useHasValues: typeof useHasValuesDecl = (
854 storeOrStoreId?: StoreOrStoreId,

Callers 3

StateFunction · 0.90
TestFunction · 0.90
EditableCellViewFunction · 0.90

Calls 2

useCellFunction · 0.90
useSetCellCallbackFunction · 0.90

Tested by 2

StateFunction · 0.72
TestFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…