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

Function useComponentPerRow

docs/pseudo.esm.sh/tinybase@9.0.0/ui-react/index.js:1467–1499  ·  view source on GitHub ↗
({
  relationshipId,
  relationships,
  rowComponent: Row = RowView,
  getRowComponentProps,
  separator,
  debugIds
}, getRowIdsHook, rowId)

Source from the content-addressed store, hash-verified

1465 )
1466});
1467var useComponentPerRow = ({
1468 relationshipId,
1469 relationships,
1470 rowComponent: Row = RowView,
1471 getRowComponentProps,
1472 separator,
1473 debugIds
1474}, getRowIdsHook, rowId) => {
1475 const [resolvedRelationships, store, localTableId] = getRelationshipsStoreTableIds(
1476 useRelationshipsOrRelationshipsById(relationships),
1477 relationshipId
1478 );
1479 const rowIds = getRowIdsHook(relationshipId, rowId, resolvedRelationships);
1480 return /* @__PURE__ */ jsx(Wrap, {
1481 separator,
1482 debugIds,
1483 id: rowId,
1484 children: arrayMap(
1485 rowIds,
1486 (rowId2) => /* @__PURE__ */ jsx(
1487 Row,
1488 {
1489 ...getProps(getRowComponentProps, rowId2),
1490 tableId: localTableId,
1491 rowId: rowId2,
1492 store,
1493 debugIds
1494 },
1495 rowId2
1496 )
1497 )
1498 });
1499};
1500var getUseCheckpointView = (getCheckpoints) => ({
1501 checkpoints,
1502 checkpointComponent: Checkpoint = CheckpointView,

Callers 2

LinkedRowsViewFunction · 0.70
LocalRowsViewFunction · 0.70

Calls 4

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…