Skip to content

Commit

Permalink
docs(useMutation): fix incorrect mutationKey types (#5602)
Browse files Browse the repository at this point in the history
  • Loading branch information
CertainlyAria authored Jun 18, 2023
1 parent ab8dd55 commit 28a96c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/react/reference/QueryClient.md
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ function Component() {

**Options**

- `mutationKey: string | unknown[]`
- `mutationKey: unknown[]`
- `options: MutationOptions`

> Similar to [`setQueryDefaults`](#queryclientsetquerydefaults), the order of registration does matter here.
Expand Down
2 changes: 1 addition & 1 deletion docs/react/reference/useMutation.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ mutate(variables, {
- `cacheTime: number | Infinity`
- The time in milliseconds that unused/inactive cache data remains in memory. When a mutation's cache becomes unused or inactive, that cache data will be garbage collected after this duration. When different cache times are specified, the longest one will be used.
- If set to `Infinity`, will disable garbage collection
- `mutationKey: string`
- `mutationKey: unknown[]`
- Optional
- A mutation key can be set to inherit defaults set with `queryClient.setMutationDefaults` or to identify the mutation in the devtools.
- `networkMode: 'online' | 'always' | 'offlineFirst`
Expand Down

0 comments on commit 28a96c7

Please sign in to comment.