diff --git a/README.md b/README.md index 8543bb7cbf6..6cbcca4f0b5 100644 --- a/README.md +++ b/README.md @@ -1959,7 +1959,7 @@ const promise = mutate(variables, { - 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 - - The value returned from this function will be passed to both the `onError` and `onSettled` functions and can be useful for rolling back optimistic updates in the event of a mutation failure. + - The value returned from this function will be passed to both the `onError` and `onSettled` functions in the event of a mutation failure and can be useful for rolling back optimistic updates. - `onSuccess: Function(data, variables) => Promise | undefined` - Optional - This function will fire when the mutation is successful and will be passed the mutation's result.