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

Add error boundary #421

Merged
merged 1 commit into from
Apr 15, 2023
Merged

Add error boundary #421

merged 1 commit into from
Apr 15, 2023

Conversation

Reckless-Satoshi
Copy link
Collaborator

@Reckless-Satoshi Reckless-Satoshi commented Apr 15, 2023

What does this PR do?

Adds a simple class component that wraps the entire app with an error boundary. In case of an uncaught error the web app crashes and renders a white screen. Now, it will instead display the error message for 10 seconds, then proceed to restart the app.

Checklist before merging

  • If it's a frontend feature, I have ran prettier cd frontend; npm run format. If it's a mobile app feature I ran cd mobile; npm run format.
  • If I added new phrases to the user interface, I have ran prettier cd frontend/static/locales; python collect_phrases.py to collect them for translation.

@Reckless-Satoshi Reckless-Satoshi merged commit a16af27 into main Apr 15, 2023
@Reckless-Satoshi Reckless-Satoshi deleted the add-error-boundary branch April 15, 2023 19:35
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.

1 participant