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

Function SliceView

docs/pseudo.esm.sh/tinybase@9.0.0/ui-react/index.js:1534–1567  ·  view source on GitHub ↗
({
  indexId,
  sliceId,
  indexes,
  rowComponent: Row = RowView,
  getRowComponentProps,
  separator,
  debugIds
})

Source from the content-addressed store, hash-verified

1532 (checkpointIds) => checkpointIds[2]
1533);
1534var SliceView = ({
1535 indexId,
1536 sliceId,
1537 indexes,
1538 rowComponent: Row = RowView,
1539 getRowComponentProps,
1540 separator,
1541 debugIds
1542}) => {
1543 const [resolvedIndexes, store, tableId] = getIndexStoreTableId(
1544 useIndexesOrIndexesById(indexes),
1545 indexId
1546 );
1547 const rowIds = useSliceRowIds(indexId, sliceId, resolvedIndexes);
1548 return /* @__PURE__ */ jsx(Wrap, {
1549 separator,
1550 debugIds,
1551 id: sliceId,
1552 children: arrayMap(
1553 rowIds,
1554 (rowId) => /* @__PURE__ */ jsx(
1555 Row,
1556 {
1557 ...getProps(getRowComponentProps, rowId),
1558 tableId,
1559 rowId,
1560 store,
1561 debugIds
1562 },
1563 rowId
1564 )
1565 )
1566 });
1567};
1568var IndexView = ({
1569 indexId,
1570 indexes,

Callers

nothing calls this directly

Calls 5

getIndexStoreTableIdFunction · 0.70
useIndexesOrIndexesByIdFunction · 0.70
useSliceRowIdsFunction · 0.70
arrayMapFunction · 0.70
getPropsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…