You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error should get captured and sent to Sentry as a Non-Error exception
Actual Result
The ErrorBoundary causes another error when it tries to set the property cause onto the original one. Because it's not an Error object, but in this case a primitive type, then it throws that other error.
This exception then bubbles further up to the next ErrorBoundary, dismounting other components that shouldn't be dismounted.
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/react
SDK Version
7.18.0
Framework Version
18.2.0
Link to Sentry event
No response
Steps to Reproduce
Example codesandbox: https://codesandbox.io/s/infallible-sun-urw7yh?file=/src/App.js
Expected Result
The error should get captured and sent to Sentry as a
Non-Error exception
Actual Result
The ErrorBoundary causes another error when it tries to set the property
cause
onto the original one. Because it's not an Error object, but in this case a primitive type, then it throws that other error.This exception then bubbles further up to the next ErrorBoundary, dismounting other components that shouldn't be dismounted.
The text was updated successfully, but these errors were encountered: