Skip to content

Commit

Permalink
馃摑 docs(react-query): add throwError to migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
moshyfawn committed Dec 28, 2022
1 parent 4e1dd01 commit 04b033b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/react/guides/migrating-to-react-query-5.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ if you still need to remove a query, you can use `queryClient.removeQueries({que
### The minimum required TypeScript version is now 4.7

Mainly because an important fix was shipped around type inference. Please see this [TypeScript issue](https://github.com/microsoft/TypeScript/issues/43371) for more information.

### The `useErrorBoundary` prop has been renamed to `throwError`

To make the `useErrorBoundary` prop more framework-agnostic and avoid confusion with the established React function prefix "`use`" for hooks and the "ErrorBoundary" component name, it has been renamed to `throwError` to more accurately reflect its functionality.

0 comments on commit 04b033b

Please sign in to comment.