We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07ce2a5 commit 92435c7Copy full SHA for 92435c7
src/react/types.ts
@@ -8,6 +8,7 @@ import {
8
QueryObserverOptions,
9
QueryObserverResult,
10
QueryKey,
11
+ MutationFunction,
12
} from '../core/types'
13
14
export interface UseBaseQueryOptions<
@@ -75,8 +76,11 @@ export interface UseMutationOptions<
75
76
TVariables = void,
77
TContext = unknown
78
> {
79
+ mutationFn?: MutationFunction<TData, TVariables>
80
mutationKey?: MutationKey
- onMutate?: (variables: TVariables) => Promise<TContext> | Promise<undefined> | TContext | undefined
81
+ onMutate?: (
82
+ variables: TVariables
83
+ ) => Promise<TContext> | Promise<undefined> | TContext | undefined
84
onSuccess?: (
85
data: TData,
86
variables: TVariables,
0 commit comments