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

Function useTablesState

src/ui-react/hooks.ts:661–666  ·  view source on GitHub ↗
(
  storeOrStoreId?: StoreOrStoreId,
)

Source from the content-addressed store, hash-verified

659 useListenable(TABLES, useStoreOrStoreById(storeOrStoreId), ReturnType.Object);
660
661export const useTablesState: typeof useTablesStateDecl = (
662 storeOrStoreId?: StoreOrStoreId,
663): [Tables, (tables: Tables) => void] => [
664 useTables(storeOrStoreId),
665 useSetTablesCallback(getArg, [], storeOrStoreId),
666];
667
668export const useTableIds: typeof useTableIdsDecl = (
669 storeOrStoreId?: StoreOrStoreId,

Callers 2

StateFunction · 0.90
TestFunction · 0.90

Calls 2

useTablesFunction · 0.90
useSetTablesCallbackFunction · 0.90

Tested by 2

StateFunction · 0.72
TestFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…