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

Function useSetPartialValuesCallback

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

Source from the content-addressed store, hash-verified

838 useStoreSetCallback(storeOrStoreId, VALUES, getValues, then);
839
840export const useSetPartialValuesCallback = <Parameter>(
841 getPartialValues: (parameter: Parameter, store: Store) => Values,
842 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
843 then?: (store: Store, partialValues: Values) => void,
844): ParameterizedCallback<Parameter> =>
845 useStoreSetCallback(storeOrStoreId, PARTIAL + VALUES, getPartialValues, then);
846
847export const useSetValueCallback = <Parameter>(
848 valueId: MaybeAccessor<Id> | GetId<Parameter>,

Callers 2

WriterFunction · 0.90
primitives.test.tsFile · 0.90

Calls 1

useStoreSetCallbackFunction · 0.70

Tested by 1

WriterFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…