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

Function useValue

src/ui-solid/primitives.ts:724–733  ·  view source on GitHub ↗
(
  valueId: MaybeAccessor<Id>,
  storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
)

Source from the content-addressed store, hash-verified

722 );
723
724export const useValue = (
725 valueId: MaybeAccessor<Id>,
726 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
727): Accessor<ValueOrUndefined> =>
728 useListenable(
729 VALUE,
730 useStoreOrStoreById(storeOrStoreId),
731 ReturnType.CellOrValue,
732 [valueId],
733 );
734
735export const useValueState = (
736 valueId: MaybeAccessor<Id>,

Callers 7

ReaderFunction · 0.90
primitives.test.tsFile · 0.90
HeaderFunction · 0.90
NubFunction · 0.90
PanelFunction · 0.90
ValueViewFunction · 0.90
useValueStateFunction · 0.70

Calls 2

useListenableFunction · 0.70
useStoreOrStoreByIdFunction · 0.70

Tested by 1

ReaderFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…