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 7a3990e commit bdec357Copy full SHA for bdec357
docs/framework/react/reference/useMutation.md
@@ -64,7 +64,7 @@ mutate(variables, {
64
- Optional
65
- defaults to `'online'`
66
- see [Network Mode](../guides/network-mode.md) for more information.
67
-- `onMutate: (variables: TVariables) => Promise<TOnMutateResult | void> | TOnMutateResult | void`
+- `onMutate: (variables: TVariables, context: MutationFunctionContext) => Promise<TOnMutateResult | void> | TOnMutateResult | void`
68
69
- This function will fire before the mutation function is fired and is passed the same variables the mutation function would receive
70
- Useful to perform optimistic updates to a resource in hopes that the mutation succeeds
0 commit comments