MCPcopy Create free account
hub / github.com/tinyplex/tinybase / useCellIds

Function useCellIds

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

Source from the content-addressed store, hash-verified

633];
634
635export const useCellIds = (
636 tableId: MaybeAccessor<Id>,
637 rowId: MaybeAccessor<Id>,
638 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
639): Accessor<Ids> =>
640 useListenable(
641 CELL_IDS,
642 useStoreOrStoreById(storeOrStoreId),
643 ReturnType.Array,
644 [tableId, rowId],
645 );
646
647export const useHasCell = (
648 tableId: MaybeAccessor<Id>,

Callers 2

ReaderFunction · 0.90

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…