From 04b033bfe872cab747cb2d78bfad595ac3064cea Mon Sep 17 00:00:00 2001 From: moshyfawn Date: Wed, 28 Dec 2022 22:03:06 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs(react-query):=20add=20throw?= =?UTF-8?q?Error=20to=20migration=20guide?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/react/guides/migrating-to-react-query-5.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/react/guides/migrating-to-react-query-5.md b/docs/react/guides/migrating-to-react-query-5.md index dee7d8b90a..c4c76f6c23 100644 --- a/docs/react/guides/migrating-to-react-query-5.md +++ b/docs/react/guides/migrating-to-react-query-5.md @@ -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. \ No newline at end of file