Design and Implement React Error Boundary
- Dominant language
- Rust
- Stars
- 2.8k
- Forks
- 115
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 53
Description
Issue:
When JS for some reason reads an undefined, null or have some unexpected crash/error it leaves now a user with blank white page which is not ideal.
Solution:
Implement error boundaries around common interface concepts like "Setup"(eg. network wizzard or device setup), "Modal" or "Page".
When in some context an critical error occurs we should let the user know something we can't recover from happen.

Example:
https://codesandbox.io/p/sandbox/react-error-boundary-example-djfng?file=%2Fsrc%2Findex.tsx%3A36%2C19
Resources:
https://github.com/bvaughn/react-error-boundary
Contributor guide
Assessment
This issue has not been assessed yet.