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

Function hasValue

src/ui-svelte/functions.svelte.ts:531–541  ·  view source on GitHub ↗
(
  valueId: MaybeGetter<Id>,
  storeOrStoreId?: MaybeGetter<Store | Id | undefined>,
)

Source from the content-addressed store, hash-verified

529 createListenable(resolveStore(storeOrStoreId), VALUE_IDS, EMPTY_ARR);
530
531export const hasValue = (
532 valueId: MaybeGetter<Id>,
533 storeOrStoreId?: MaybeGetter<Store | Id | undefined>,
534): {readonly current: boolean} =>
535 createListenable(
536 resolveStore(storeOrStoreId),
537 VALUE,
538 false,
539 () => [maybeGet(valueId)],
540 1,
541 );
542
543export const getValue = (
544 valueId: MaybeGetter<Id>,

Callers

nothing calls this directly

Calls 3

createListenableFunction · 0.70
resolveStoreFunction · 0.70
maybeGetFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…