Skip to content

Error boundries #43

@yoshuawuyts

Description

@yoshuawuyts

In React 16 components introduce something new called error boundries. The main idea is that if an error is thrown from a component, it can be caught early, and prevents crashing the whole web page.

I find this interesting because:

  1. it means apps can keep running even if a component crashes (resiliency! :D)
  2. it'll play well with component.use (or similar); can send through the error to a local dev logger, or monitoring solution
  3. it's especially good to add resiliency when encapsulating 3rd party code - ideally code would never crash, but alas code isn't bug free

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions