MCPcopy Index your code
hub / github.com/tinyplex/tinybase / useRowCount

Function useRowCount

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

Source from the content-addressed store, hash-verified

556 );
557
558export const useRowCount = (
559 tableId: MaybeAccessor<Id>,
560 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
561): Accessor<number> =>
562 useListenable(
563 ROW_COUNT,
564 useStoreOrStoreById(storeOrStoreId),
565 ReturnType.Number,
566 [tableId],
567 );
568
569export const useRowIds = (
570 tableId: MaybeAccessor<Id>,

Callers 3

ReaderFunction · 0.90
primitives.test.tsFile · 0.90
SortedTableInHtmlTableFunction · 0.90

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…