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

Function useTableState

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

Source from the content-addressed store, hash-verified

525 tableId,
526 ]);
527export const useTableState = (
528 tableId: MaybeAccessor<Id>,
529 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
530): [Accessor<Table>, (table: Table) => void] => [
531 useTable(tableId, storeOrStoreId),
532 useSetTableCallback(tableId, getArg, storeOrStoreId),
533];
534
535export const useTableCellIds = (
536 tableId: MaybeAccessor<Id>,

Callers 2

StateFunction · 0.90
primitives.test.tsFile · 0.90

Calls 2

useTableFunction · 0.70
useSetTableCallbackFunction · 0.70

Tested by 1

StateFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…