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

Function useTablesState

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

Source from the content-addressed store, hash-verified

491 useListenable(TABLES, useStoreOrStoreById(storeOrStoreId), ReturnType.Object);
492
493export const useTablesState = (
494 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
495): [Accessor<Tables>, (tables: Tables) => void] => [
496 useTables(storeOrStoreId),
497 useSetTablesCallback(getArg, storeOrStoreId),
498];
499
500export const useTableIds = (
501 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,

Callers 2

StateFunction · 0.90
primitives.test.tsFile · 0.90

Calls 2

useTablesFunction · 0.70
useSetTablesCallbackFunction · 0.70

Tested by 1

StateFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…