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

Function useHasCell

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

645 );
646
647export const useHasCell = (
648 tableId: MaybeAccessor<Id>,
649 rowId: MaybeAccessor<Id>,
650 cellId: MaybeAccessor<Id>,
651 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
652): Accessor<boolean> =>
653 useListenable(CELL, useStoreOrStoreById(storeOrStoreId), ReturnType.Boolean, [
654 tableId,
655 rowId,
656 cellId,
657 ]);
658
659export const useCell = (
660 tableId: MaybeAccessor<Id>,

Callers 3

ReaderFunction · 0.90
primitives.test.tsFile · 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…