From 61c3d94a94cee551834d573984c932df25e264ad Mon Sep 17 00:00:00 2001 From: Louis Young Date: Fri, 20 Jan 2023 12:24:26 +0000 Subject: [PATCH] docs(useMutation): clarify `mutationFn` option default (#4837) * docs(useMutation): clarify `mutationFn` option default * Make optionality consistent with `useQuery` documentation Co-authored-by: Dominik Dorfmeister Co-authored-by: Dominik Dorfmeister --- docs/react/reference/useMutation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/react/reference/useMutation.md b/docs/react/reference/useMutation.md index c3ae969ce6..36ee1c6652 100644 --- a/docs/react/reference/useMutation.md +++ b/docs/react/reference/useMutation.md @@ -43,7 +43,7 @@ mutate(variables, { **Options** - `mutationFn: (variables: TVariables) => Promise` - - **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`