Skip to content

fix(react): Set handled value in ErrorBoundary depending on fallback #10988

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

Closed
wants to merge 1 commit into from

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Mar 8, 2024

This PR adjusts when we mark errors caught in our React SDK's ErrorBoundary as handled/unhandled.

Previously, we made a change to always mark such errors as unhandled (#8914). However, as pointed out and discussed in #10985, this isn't always the best default value. I propose we set handled/unhandled depending on the presence of the fallback component. If users specify a fallback, I think it's safe to mark the error handled, given that users show something else instead of the errored component.

Would appreciate thoughts from our React experts ;)

closes #10985

@Lms24 Lms24 self-assigned this Mar 8, 2024
@Lms24 Lms24 closed this Mar 8, 2024
@Lms24 Lms24 deleted the lms/feat-browser-scope-setTransactionName branch March 8, 2024 13:36
@Lms24
Copy link
Member Author

Lms24 commented Mar 8, 2024

closed b/c of wrong branch name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ErrorBoundary errors are being incorrectly marked as unhandled since 5.9.2
1 participant