MCPcopy Index your code
hub / github.com/tinyplex/tinybase / useHasTable

Function useHasTable

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

Source from the content-addressed store, hash-verified

507 );
508
509export const useHasTable = (
510 tableId: MaybeAccessor<Id>,
511 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
512): Accessor<boolean> =>
513 useListenable(
514 TABLE,
515 useStoreOrStoreById(storeOrStoreId),
516 ReturnType.Boolean,
517 [tableId],
518 );
519
520export const useTable = (
521 tableId: MaybeAccessor<Id>,

Callers 2

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…