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

Function useHasValueCallback

src/ui-solid-inspector/index.tsx:146–149  ·  view source on GitHub ↗
(storeOrStoreId: StoreOrStoreId | undefined)

Source from the content-addressed store, hash-verified

144};
145
146const useHasValueCallback = (storeOrStoreId: StoreOrStoreId | undefined) => {
147 const store = useStoreOrStoreById(storeOrStoreId);
148 return (valueId: Id) => store()?.hasValue(valueId) ?? false;
149};
150
151const Details = (
152 props: {

Callers 2

AddValueFunction · 0.70
CloneValueFunction · 0.70

Calls 3

useStoreOrStoreByIdFunction · 0.90
hasValueMethod · 0.65
storeFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…