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

Function useSortedRowIds

src/ui-react/hooks.ts:749–775  ·  view source on GitHub ↗
(
  tableIdOrArgs: Id | SortedRowIdsArgs,
  cellIdOrStoreOrStoreId?: Id | StoreOrStoreId,
  descending?: boolean,
  offset?: number,
  limit?: number | undefined,
  storeOrStoreId?: StoreOrStoreId,
)

Source from the content-addressed store, hash-verified

747 );
748
749export const useSortedRowIds: typeof useSortedRowIdsDecl = (
750 tableIdOrArgs: Id | SortedRowIdsArgs,
751 cellIdOrStoreOrStoreId?: Id | StoreOrStoreId,
752 descending?: boolean,
753 offset?: number,
754 limit?: number | undefined,
755 storeOrStoreId?: StoreOrStoreId,
756): Ids =>
757 (useSortedRowIdsImpl as any)(
758 ...(isObject(tableIdOrArgs)
759 ? [
760 tableIdOrArgs.tableId,
761 tableIdOrArgs.cellId,
762 tableIdOrArgs.descending ?? false,
763 tableIdOrArgs.offset ?? 0,
764 tableIdOrArgs.limit,
765 cellIdOrStoreOrStoreId,
766 ]
767 : [
768 tableIdOrArgs,
769 cellIdOrStoreOrStoreId,
770 descending,
771 offset,
772 limit,
773 storeOrStoreId,
774 ]),
775 );
776
777export const useHasRow: typeof useHasRowDecl = (
778 tableId: Id,

Callers 7

ReaderFunction · 0.90
TestFunction · 0.90
SortedTableViewFunction · 0.90
SortedTableInHtmlTableFunction · 0.90
useSeriesDataFunction · 0.90
GettersFunction · 0.50
GettersFunction · 0.50

Calls 1

isObjectFunction · 0.90

Tested by 2

ReaderFunction · 0.72
TestFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…