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 6fe0033 commit 5f73635Copy full SHA for 5f73635
src/react/types.ts
@@ -4,6 +4,7 @@ import {
4
InfiniteQueryObserverResult,
5
MutateOptions,
6
MutationStatus,
7
+ MutationKey,
8
QueryObserverOptions,
9
QueryObserverResult,
10
QueryKey,
@@ -74,7 +75,7 @@ export interface UseMutationOptions<
74
75
TVariables = void,
76
TContext = unknown
77
> {
- mutationKey?: string | unknown[]
78
+ mutationKey?: MutationKey
79
onMutate?: (variables: TVariables) => Promise<TContext> | Promise<undefined> | TContext | undefined
80
onSuccess?: (
81
data: TData,
0 commit comments