MCPcopy Create free account
hub / github.com/tinyplex/tinybase / getLocalRowIds

Function getLocalRowIds

src/ui-svelte/functions.svelte.ts:843–853  ·  view source on GitHub ↗
(
  relationshipId: MaybeGetter<Id>,
  remoteRowId: MaybeGetter<Id>,
  relationshipsOrRelationshipsId?: MaybeGetter<Relationships | Id | undefined>,
)

Source from the content-addressed store, hash-verified

841 );
842
843export const getLocalRowIds = (
844 relationshipId: MaybeGetter<Id>,
845 remoteRowId: MaybeGetter<Id>,
846 relationshipsOrRelationshipsId?: MaybeGetter<Relationships | Id | undefined>,
847): {readonly current: Ids} =>
848 createListenable(
849 resolveRelationships(relationshipsOrRelationshipsId),
850 LOCAL + ROW_IDS,
851 EMPTY_ARR,
852 () => [maybeGet(relationshipId), maybeGet(remoteRowId)],
853 );
854
855export const getLinkedRowIds = (
856 relationshipId: MaybeGetter<Id>,

Callers

nothing calls this directly

Calls 3

createListenableFunction · 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…