Skip to content
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

UX: Prevent "white screen of death" on error #967

Open
joeflack4 opened this issue Nov 10, 2024 · 0 comments
Open

UX: Prevent "white screen of death" on error #967

joeflack4 opened this issue Nov 10, 2024 · 0 comments
Assignees
Labels
ux issue User-experience related issue
Milestone

Comments

@joeflack4
Copy link
Member

Overview

I think I was working on #966 when I noticed this in the console:
Consider adding an error boundary to your tree to customize error handling behavior.

It had this link: https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary

By default, if your application throws an error during rendering, React will remove its UI from the screen. To prevent this, you can wrap a part of your UI into an error boundary.

Seems like this prevents white screen of death!

@joeflack4 joeflack4 added the ux issue User-experience related issue label Nov 10, 2024
@github-project-automation github-project-automation bot moved this to 3. Backlog in TermHub Nov 10, 2024
@joeflack4 joeflack4 added this to the 9. Unplanned milestone Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ux issue User-experience related issue
Projects
Status: 3. Backlog
Development

No branches or pull requests

2 participants