Function
useSetPartialValuesCallback
(
getPartialValues: (parameter: Parameter, store: Store) => Values,
getPartialValuesDeps?: DependencyList,
storeOrStoreId?: StoreOrStoreId,
then?: (store: Store, partialValues: Values) => void,
thenDeps?: DependencyList,
)
Source from the content-addressed store, hash-verified
| 1061 | |
| 1062 | export const useSetPartialValuesCallback: typeof useSetPartialValuesCallbackDecl = |
| 1063 | <Parameter>( |
| 1064 | getPartialValues: (parameter: Parameter, store: Store) => Values, |
| 1065 | getPartialValuesDeps?: DependencyList, |
| 1066 | storeOrStoreId?: StoreOrStoreId, |
| 1067 | then?: (store: Store, partialValues: Values) => void, |
| 1068 | thenDeps?: DependencyList, |
| 1069 | ): ParameterizedCallback<Parameter> => |
| 1070 | useStoreSetCallback( |
| 1071 | storeOrStoreId, |
| 1072 | PARTIAL + VALUES, |
| 1073 | getPartialValues, |
| 1074 | getPartialValuesDeps, |
| 1075 | then, |
| 1076 | thenDeps, |
| 1077 | ); |
| 1078 | |
| 1079 | export const useSetValueCallback: typeof useSetValueCallbackDecl = <Parameter>( |
| 1080 | valueId: Id | GetId<Parameter>, |
Used in the wild real call sites across dependent graphs
searching dependent graphs…