Skip to content

Commit 04b033b

Browse files
author
moshyfawn
committed
📝 docs(react-query): add throwError to migration guide
1 parent 4e1dd01 commit 04b033b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/react/guides/migrating-to-react-query-5.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ if you still need to remove a query, you can use `queryClient.removeQueries({que
2626
### The minimum required TypeScript version is now 4.7
2727

2828
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.
29+
30+
### The `useErrorBoundary` prop has been renamed to `throwError`
31+
32+
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 commit comments

Comments
 (0)