Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
docs(useMutation): clarify mutationFn option default (#4837)
* docs(useMutation): clarify `mutationFn` option default

* Make optionality consistent with `useQuery` documentation

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
  • Loading branch information
louis-young and TkDodo committed Jan 20, 2023
1 parent ff77512 commit 61c3d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/react/reference/useMutation.md
Expand Up @@ -43,7 +43,7 @@ mutate(variables, {
**Options**

- `mutationFn: (variables: TVariables) => Promise<TData>`
- **Required**
- **Required, but only if no default mutation function has been defined**
- A function that performs an asynchronous task and returns a promise.
- `variables` is an object that `mutate` will pass to your `mutationFn`
- `cacheTime: number | Infinity`
Expand Down

0 comments on commit 61c3d94

Please sign in to comment.