sebastian-software / edge

The Lerna Repository for Edge Platform
Apache License 2.0
33 stars 7 forks source link

Add error boundaries (React v16) to all routes when using routed() #17

Open swernerx opened 6 years ago

swernerx commented 6 years ago

In React v16 there is a new feature which tries to keep the overall application running when a single part of the view is crashing. This feature can be used in the applications where needed but I figure it would make sense to sandbox all routes (and views) to not kill the whole application when something on the view crashes.

As most applications of the Edge platform use the routed function from edge-core right now it might be sensible to add the behavior of error boundaries to this method.

See also: https://reactjs.org/blog/2017/07/26/error-handling-in-react-16.html