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

Function useSetValuesCallback

src/ui-solid/primitives.ts:833–838  ·  view source on GitHub ↗
(
  getValues: (parameter: Parameter, store: Store) => Values,
  storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
  then?: (store: Store, values: Values) => void,
)

Source from the content-addressed store, hash-verified

831 );
832
833export const useSetValuesCallback = <Parameter>(
834 getValues: (parameter: Parameter, store: Store) => Values,
835 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
836 then?: (store: Store, values: Values) => void,
837): ParameterizedCallback<Parameter> =>
838 useStoreSetCallback(storeOrStoreId, VALUES, getValues, then);
839
840export const useSetPartialValuesCallback = <Parameter>(
841 getPartialValues: (parameter: Parameter, store: Store) => Values,

Callers 2

WriterFunction · 0.90
useValuesStateFunction · 0.70

Calls 1

useStoreSetCallbackFunction · 0.70

Tested by 1

WriterFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…