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

Function useRemoteRowId

src/ui-solid/primitives.ts:1382–1392  ·  view source on GitHub ↗
(
  relationshipId: MaybeAccessor<Id>,
  localRowId: MaybeAccessor<Id>,
  relationshipsOrRelationshipsId?: MaybeRelationshipsOrRelationshipsId,
)

Source from the content-addressed store, hash-verified

1380 );
1381
1382export const useRemoteRowId = (
1383 relationshipId: MaybeAccessor<Id>,
1384 localRowId: MaybeAccessor<Id>,
1385 relationshipsOrRelationshipsId?: MaybeRelationshipsOrRelationshipsId,
1386): Accessor<Id | undefined> =>
1387 useListenable(
1388 REMOTE_ROW_ID,
1389 useRelationshipsOrRelationshipsById(relationshipsOrRelationshipsId),
1390 ReturnType.CellOrValue,
1391 [relationshipId, localRowId],
1392 );
1393
1394export const useLocalRowIds = (
1395 relationshipId: MaybeAccessor<Id>,

Callers 4

ReaderFunction · 0.90
primitives.test.tsFile · 0.90
RemoteRowViewFunction · 0.90
RelationshipInHtmlRowFunction · 0.90

Calls 2

useListenableFunction · 0.70

Tested by 1

ReaderFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…