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

Function useCell

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

Source from the content-addressed store, hash-verified

828 ]);
829
830export const useCell: typeof useCellDecl = (
831 tableId: Id,
832 rowId: Id,
833 cellId: Id,
834 storeOrStoreId?: StoreOrStoreId,
835): CellOrUndefined =>
836 useListenable(
837 CELL,
838 useStoreOrStoreById(storeOrStoreId),
839 ReturnType.CellOrValue,
840 [tableId, rowId, cellId],
841 );
842
843export const useCellState: typeof useCellStateDecl = (
844 tableId: Id,

Callers 12

ReaderFunction · 0.90
TestFunction · 0.90
ContextCellChildFunction · 0.90
TestFunction · 0.90
CellViewFunction · 0.90
useCellStateFunction · 0.90
TableViewFunction · 0.90
useEditableFunction · 0.90
QueryViewFunction · 0.90
DetailsFunction · 0.90
GettersFunction · 0.50
GettersFunction · 0.50

Calls 2

useStoreOrStoreByIdFunction · 0.90
useListenableFunction · 0.70

Tested by 4

ReaderFunction · 0.72
TestFunction · 0.72
ContextCellChildFunction · 0.72
TestFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…