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
{{ message }}
Repository navigation
Allow user to choose if an error has been handled by an ErrorBoundary #14554
#8914 was setting errors caught by ErrorBoundaries as unhandled.
Then, #10985 was opened, asking to use the fallback property in order to decide if the error should be considered handled or not, and implemented in #10989.
I'm in a situation where I do not want to mark my errors as handled, despite using an ErrorBoundary. The reason is that it's a global error boundary, and at that point I consider that it's equivalent to a crash. I want to include that in my Sentry issues when filtering with unhandled, and I want to have it count towards the crashed sessions.
Solution Brainstorm
Modify the existing ErrorBoundary to pass an explicit handled property, defaulting to undefined.
For retro-compatibility the presence of the fallback property should be used if handled is not set, otherwise the setting should be used directly to mark the error as handled or not.
Hey @HHK1 thanks for writing in! This sounds reasonable to me. Are you interested in opening a PR to contribute this? If not, no worries, I can take a look. Just asking :)
Initial implementation is here: #14560
I had some errors when running the linter and the test suite locally, so I'm waiting on the CI to see if it's a setup issue or something else.
Activity
Lms24 commentedon Dec 3, 2024
Hey @HHK1 thanks for writing in! This sounds reasonable to me. Are you interested in opening a PR to contribute this? If not, no worries, I can take a look. Just asking :)
HHK1 commentedon Dec 3, 2024
Interested in opening a PR. From the looks of the previous implementation, it doesn't look like much.
I'll get to it right now
Lms24 commentedon Dec 3, 2024
awesome, thanks!
HHK1 commentedon Dec 3, 2024
Initial implementation is here: #14560
I had some errors when running the linter and the test suite locally, so I'm waiting on the CI to see if it's a setup issue or something else.
Lms24 commentedon Dec 4, 2024
Thanks, I'll take a look!
HHK1 commentedon Jan 20, 2025
fixed by #14560