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

Function useRowState

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

Source from the content-addressed store, hash-verified

624 ]);
625
626export const useRowState = (
627 tableId: MaybeAccessor<Id>,
628 rowId: MaybeAccessor<Id>,
629 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
630): [Accessor<Row>, (row: Row) => void] => [
631 useRow(tableId, rowId, storeOrStoreId),
632 useSetRowCallback(tableId, rowId, getArg, storeOrStoreId),
633];
634
635export const useCellIds = (
636 tableId: MaybeAccessor<Id>,

Callers 2

StateFunction · 0.90
primitives.test.tsFile · 0.90

Calls 2

useRowFunction · 0.70
useSetRowCallbackFunction · 0.70

Tested by 1

StateFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…