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

Function useTable

src/ui-react/hooks.ts:688–694  ·  view source on GitHub ↗
(
  tableId: Id,
  storeOrStoreId?: StoreOrStoreId,
)

Source from the content-addressed store, hash-verified

686 );
687
688export const useTable: typeof useTableDecl = (
689 tableId: Id,
690 storeOrStoreId?: StoreOrStoreId,
691): Table =>
692 useListenable(TABLE, useStoreOrStoreById(storeOrStoreId), ReturnType.Object, [
693 tableId,
694 ]);
695
696export const useTableState: typeof useTableStateDecl = (
697 tableId: Id,

Callers 7

ReaderFunction · 0.90
TestFunction · 0.90
ContextTableChildFunction · 0.90
TestFunction · 0.90
useTableStateFunction · 0.90
GettersFunction · 0.50
GettersFunction · 0.50

Calls 2

useStoreOrStoreByIdFunction · 0.90
useListenableFunction · 0.70

Tested by 4

ReaderFunction · 0.72
TestFunction · 0.72
ContextTableChildFunction · 0.72
TestFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…