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

Function useValuesState

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

Source from the content-addressed store, hash-verified

695 useListenable(VALUES, useStoreOrStoreById(storeOrStoreId), ReturnType.Object);
696
697export const useValuesState = (
698 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
699): [Accessor<Values>, (values: Values) => void] => [
700 useValues(storeOrStoreId),
701 useSetValuesCallback(getArg, storeOrStoreId),
702];
703
704export const useValueIds = (
705 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,

Callers 2

StateFunction · 0.90
primitives.test.tsFile · 0.90

Calls 2

useValuesFunction · 0.70
useSetValuesCallbackFunction · 0.70

Tested by 1

StateFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…