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

Function onLinkedRowIds

src/ui-svelte/functions.svelte.ts:1376–1387  ·  view source on GitHub ↗
(
  relationshipId: MaybeGetter<Id>,
  firstRowId: MaybeGetter<Id>,
  listener: LinkedRowIdsListener,
  relationshipsOrRelationshipsId?: MaybeGetter<Relationships | Id | undefined>,
)

Source from the content-addressed store, hash-verified

1374 );
1375
1376export const onLinkedRowIds = (
1377 relationshipId: MaybeGetter<Id>,
1378 firstRowId: MaybeGetter<Id>,
1379 listener: LinkedRowIdsListener,
1380 relationshipsOrRelationshipsId?: MaybeGetter<Relationships | Id | undefined>,
1381): void =>
1382 addListenerEffect(
1383 resolveRelationships(relationshipsOrRelationshipsId),
1384 LINKED + ROW_IDS,
1385 listener,
1386 () => [maybeGet(relationshipId), maybeGet(firstRowId)],
1387 );
1388
1389export const onResultTable = (
1390 queryId: MaybeGetter<IdOrNull>,

Callers 1

RelationshipsFunction · 0.50

Calls 3

addListenerEffectFunction · 0.70
resolveRelationshipsFunction · 0.70
maybeGetFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…