Replies: 1 comment
-
is throwing an error also triggering the error boundary? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When using
react-error-boundary
library (https://github.com/bvaughn/react-error-boundary), it exposes an hook:const {showErrorBoundary} = useErrorBoundary();
Using this hook I can show the error boundary from anywhere in the component, callbacks, effects, whatever.
Any thoughts on adding something like this to the DefaultCatchBoundary?
I would like to have something like this:
Beta Was this translation helpful? Give feedback.
All reactions