-
Notifications
You must be signed in to change notification settings - Fork 56
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
Improve identity error message. #2623
Conversation
2d2a591
to
b8f42ad
Compare
Screen recording of the global error handling: Screen.Recording.2021-10-16.at.14.03.34.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK of firefox
I really don't like the way react handles these global errors. It trains the developer to just hit esc
on errors in order to bybass the error overlay. There's not much we can do about it though. The react devs feel strongly about it and this is not something that is going to change.
Needs code approval from @tiagoalvesdulce. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
This adds a new react error boundary to handle global identity error.
The identity error can be thrown in various modals and error boundaries
is react's way to handle such errors.
Implementation:
IdentityErrorBoundary
to catch global identity error.useCarsh
hook in order to crash inside the component treewhen an identity error is thrown from an async action.
isIdentityError
and use it cross the app.React error boundaries
Closes #2617.