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

Function useTable

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

Source from the content-addressed store, hash-verified

518 );
519
520export const useTable = (
521 tableId: MaybeAccessor<Id>,
522 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
523): Accessor<Table> =>
524 useListenable(TABLE, useStoreOrStoreById(storeOrStoreId), ReturnType.Object, [
525 tableId,
526 ]);
527export const useTableState = (
528 tableId: MaybeAccessor<Id>,
529 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,

Callers 4

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