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

Function useRemoteRowId

src/ui-react/hooks.ts:1711–1721  ·  view source on GitHub ↗
(
  relationshipId: Id,
  localRowId: Id,
  relationshipsOrRelationshipsId?: RelationshipsOrRelationshipsId,
)

Source from the content-addressed store, hash-verified

1709 );
1710
1711export const useRemoteRowId: typeof useRemoteRowIdDecl = (
1712 relationshipId: Id,
1713 localRowId: Id,
1714 relationshipsOrRelationshipsId?: RelationshipsOrRelationshipsId,
1715): Id | undefined =>
1716 useListenable(
1717 REMOTE_ROW_ID,
1718 useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
1719 ReturnType.CellOrValue,
1720 [relationshipId, localRowId],
1721 );
1722
1723export const useLocalRowIds: typeof useLocalRowIdsDecl = (
1724 relationshipId: Id,

Callers 5

ReaderFunction · 0.90
TestFunction · 0.90
RemoteRowViewFunction · 0.90
RelationshipInHtmlRowFunction · 0.90

Calls 2

useListenableFunction · 0.70

Tested by 3

ReaderFunction · 0.72
TestFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…