Skip to content

Commit ee5dc1a

Browse files
authoredMar 31, 2025··
docs(react-guides): fixed cancelMutations typo (#8881)
1 parent 6c105d6 commit ee5dc1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎docs/framework/react/guides/migrating-to-react-query-4.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ With version [3.22.0](https://github.com/tannerlinsley/react-query/releases/tag/
368368
369369
### Removed undocumented methods from the `queryClient`, `query` and `mutation`
370370
371-
The methods `cancelMutatations` and `executeMutation` on the `QueryClient` were undocumented and unused internally, so we removed them. Since it was just a wrapper around a method available on the `mutationCache`, you can still use the functionality of `executeMutation`
371+
The methods `cancelMutations` and `executeMutation` on the `QueryClient` were undocumented and unused internally, so we removed them. Since it was just a wrapper around a method available on the `mutationCache`, you can still use the functionality of `executeMutation`
372372
373373
```tsx
374374
- executeMutation< // [!code --]

0 commit comments

Comments
 (0)
Please sign in to comment.