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

Function useSliceRowIds

src/ui-react/hooks.ts:1636–1646  ·  view source on GitHub ↗
(
  indexId: Id,
  sliceId: Id,
  indexesOrIndexesId?: IndexesOrIndexesId,
)

Source from the content-addressed store, hash-verified

1634 );
1635
1636export const useSliceRowIds: typeof useSliceRowIdsDecl = (
1637 indexId: Id,
1638 sliceId: Id,
1639 indexesOrIndexesId?: IndexesOrIndexesId,
1640): Ids =>
1641 useListenable(
1642 SLICE + ROW_IDS,
1643 useIndexesOrIndexesById(indexesOrIndexesId),
1644 ReturnType.Array,
1645 [indexId, sliceId],
1646 );
1647
1648export const useSliceIdsListener: typeof useSliceIdsListenerDecl = (
1649 indexId: IdOrNull,

Callers 5

ReaderFunction · 0.90
ContextIndexesChildFunction · 0.90
TestFunction · 0.90
SliceViewFunction · 0.90
SliceInHtmlTableFunction · 0.90

Calls 2

useIndexesOrIndexesByIdFunction · 0.90
useListenableFunction · 0.70

Tested by 3

ReaderFunction · 0.72
ContextIndexesChildFunction · 0.72
TestFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…