-
Notifications
You must be signed in to change notification settings - Fork 80
feat(react): Convert non-Error objects to Error instances in ErrorBoundary #1786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
People can be co-author:
|
Co-authored-by: manudeli <[email protected]>
Co-authored-by: manudeli <[email protected]>
Co-authored-by: manudeli <[email protected]>
Co-authored-by: manudeli <[email protected]>
Updated the implementation to follow Sentry's approach. Changed type signatures for
Updated the implementation to follow Sentry's approach. Changed type signatures for Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
getDerivedStateFromErrorto convert non-Error objects to Error instancescomponentDidCatchto convert non-Error objects for onError callbackconvertToErrorhelper function for consistent conversion logicanytype for error parameters (following Sentry's approach)Original prompt
Fixes #1785
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.