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

Function useCell

src/ui-solid/primitives.ts:659–670  ·  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

657 ]);
658
659export const useCell = (
660 tableId: MaybeAccessor<Id>,
661 rowId: MaybeAccessor<Id>,
662 cellId: MaybeAccessor<Id>,
663 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
664): Accessor<CellOrUndefined> =>
665 useListenable(
666 CELL,
667 useStoreOrStoreById(storeOrStoreId),
668 ReturnType.CellOrValue,
669 [tableId, rowId, cellId],
670 );
671
672export const useCellState = (
673 tableId: MaybeAccessor<Id>,

Callers 8

ReaderFunction · 0.90
primitives.test.tsFile · 0.90
useEditableFunction · 0.90
DetailsFunction · 0.90
TableViewFunction · 0.90
QueryViewFunction · 0.90
CellViewFunction · 0.90
useCellStateFunction · 0.70

Calls 2

useListenableFunction · 0.70
useStoreOrStoreByIdFunction · 0.70

Tested by 1

ReaderFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…