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

Function RemoteRowView

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

Source from the content-addressed store, hash-verified

1599 children: useMetric(metricId, metrics) ?? EMPTY_STRING
1600});
1601var RemoteRowView = ({
1602 relationshipId,
1603 localRowId,
1604 relationships,
1605 rowComponent: Row = RowView,
1606 getRowComponentProps,
1607 debugIds
1608}) => {
1609 const [resolvedRelationships, store, , remoteTableId] = getRelationshipsStoreTableIds(
1610 useRelationshipsOrRelationshipsById(relationships),
1611 relationshipId
1612 );
1613 const rowId = useRemoteRowId(
1614 relationshipId,
1615 localRowId,
1616 resolvedRelationships
1617 );
1618 return /* @__PURE__ */ jsx(Wrap, {
1619 debugIds,
1620 id: localRowId,
1621 children: isUndefined(remoteTableId) || isUndefined(rowId) ? null : /* @__PURE__ */ jsx(
1622 Row,
1623 {
1624 ...getProps(getRowComponentProps, rowId),
1625 tableId: remoteTableId,
1626 rowId,
1627 store,
1628 debugIds
1629 },
1630 rowId
1631 )
1632 });
1633};
1634var ResultSortedTableView = ({ cellId, descending, offset, limit, ...props }) => resultTableView(
1635 props,
1636 useResultSortedRowIds(

Callers

nothing calls this directly

Calls 5

useRemoteRowIdFunction · 0.70
isUndefinedFunction · 0.70
getPropsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…