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

Function useHasValue

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

Source from the content-addressed store, hash-verified

882 );
883
884export const useHasValue: typeof useHasValueDecl = (
885 valueId: Id,
886 storeOrStoreId?: StoreOrStoreId,
887): boolean =>
888 useListenable(
889 VALUE,
890 useStoreOrStoreById(storeOrStoreId),
891 ReturnType.Boolean,
892 [valueId],
893 );
894
895export const useValue: typeof useValueDecl = (
896 valueId: Id,

Callers 3

ReaderFunction · 0.90
GettersFunction · 0.50
GettersFunction · 0.50

Calls 2

useStoreOrStoreByIdFunction · 0.90
useListenableFunction · 0.70

Tested by 1

ReaderFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…