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

Function useRow

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

Source from the content-addressed store, hash-verified

614 ]);
615
616export const useRow = (
617 tableId: MaybeAccessor<Id>,
618 rowId: MaybeAccessor<Id>,
619 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
620): Accessor<Row> =>
621 useListenable(ROW, useStoreOrStoreById(storeOrStoreId), ReturnType.Object, [
622 tableId,
623 rowId,
624 ]);
625
626export const useRowState = (
627 tableId: MaybeAccessor<Id>,

Callers 3

ReaderFunction · 0.90
primitives.test.tsFile · 0.90
useRowStateFunction · 0.70

Calls 2

useListenableFunction · 0.70
useStoreOrStoreByIdFunction · 0.70

Tested by 1

ReaderFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…