diff --git a/docs/framework/react/reference/useMutation.md b/docs/framework/react/reference/useMutation.md index adcd6bf9d0..60940ba5de 100644 --- a/docs/framework/react/reference/useMutation.md +++ b/docs/framework/react/reference/useMutation.md @@ -64,7 +64,7 @@ mutate(variables, { - Optional - defaults to `'online'` - see [Network Mode](../guides/network-mode.md) for more information. -- `onMutate: (variables: TVariables) => Promise | TOnMutateResult | void` +- `onMutate: (variables: TVariables, context: MutationFunctionContext) => Promise | TOnMutateResult | void` - Optional - This function will fire before the mutation function is fired and is passed the same variables the mutation function would receive - Useful to perform optimistic updates to a resource in hopes that the mutation succeeds