MCPcopy
hub / github.com/tinyplex/tinybase / useValue

Function useValue

src/ui-react/hooks.ts:895–904  ·  view source on GitHub ↗
(
  valueId: Id,
  storeOrStoreId?: StoreOrStoreId,
)

Source from the content-addressed store, hash-verified

893 );
894
895export const useValue: typeof useValueDecl = (
896 valueId: Id,
897 storeOrStoreId?: StoreOrStoreId,
898): ValueOrUndefined =>
899 useListenable(
900 VALUE,
901 useStoreOrStoreById(storeOrStoreId),
902 ReturnType.CellOrValue,
903 [valueId],
904 );
905
906export const useValueState: typeof useValueStateDecl = (
907 valueId: Id,

Callers 9

ReaderFunction · 0.90
TestFunction · 0.90
useValueStateFunction · 0.90
ValueViewFunction · 0.90
PanelFunction · 0.90
NubFunction · 0.90
HeaderFunction · 0.90
GettersFunction · 0.50
GettersFunction · 0.50

Calls 2

useStoreOrStoreByIdFunction · 0.90
useListenableFunction · 0.70

Tested by 2

ReaderFunction · 0.72
TestFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…