Skip to content

Design and Implement React Error Boundary #593

Open
@teon

Description

@teon

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.

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Refined & Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions