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

Function useSetValuesCallback

src/ui-react/hooks.ts:1044–1060  ·  view source on GitHub ↗
(
  getValues: (parameter: Parameter, store: Store) => Values,
  getValuesDeps?: DependencyList,
  storeOrStoreId?: StoreOrStoreId,
  then?: (store: Store, values: Values) => void,
  thenDeps?: DependencyList,
)

Source from the content-addressed store, hash-verified

1042 );
1043
1044export const useSetValuesCallback: typeof useSetValuesCallbackDecl = <
1045 Parameter,
1046>(
1047 getValues: (parameter: Parameter, store: Store) => Values,
1048 getValuesDeps?: DependencyList,
1049 storeOrStoreId?: StoreOrStoreId,
1050 then?: (store: Store, values: Values) => void,
1051 thenDeps?: DependencyList,
1052): ParameterizedCallback<Parameter> =>
1053 useStoreSetCallback(
1054 storeOrStoreId,
1055 VALUES,
1056 getValues,
1057 getValuesDeps,
1058 then,
1059 thenDeps,
1060 );
1061
1062export const useSetPartialValuesCallback: typeof useSetPartialValuesCallbackDecl =
1063 <Parameter>(

Callers 4

WriterFunction · 0.90
useValuesStateFunction · 0.90
SettersFunction · 0.50
SettersFunction · 0.50

Calls 1

useStoreSetCallbackFunction · 0.70

Tested by 1

WriterFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…