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

Function useValuesState

src/ui-react/hooks.ts:868–873  ·  view source on GitHub ↗
(
  storeOrStoreId?: StoreOrStoreId,
)

Source from the content-addressed store, hash-verified

866 useListenable(VALUES, useStoreOrStoreById(storeOrStoreId), ReturnType.Object);
867
868export const useValuesState: typeof useValuesStateDecl = (
869 storeOrStoreId?: StoreOrStoreId,
870): [Values, (values: Values) => void] => [
871 useValues(storeOrStoreId),
872 useSetValuesCallback(getArg, [], storeOrStoreId),
873];
874
875export const useValueIds: typeof useValueIdsDecl = (
876 storeOrStoreId?: StoreOrStoreId,

Callers 2

StateFunction · 0.90
TestFunction · 0.90

Calls 2

useValuesFunction · 0.90
useSetValuesCallbackFunction · 0.90

Tested by 2

StateFunction · 0.72
TestFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…