Skip to content

use React error boundaries to avoid blank pages upon unexpected errors

Administrator requested to merge error-boundaries into master

Created by: sqs

If a React component throws an error during rendering, previously the entire page would be blank. This commit introduces React error boundaries so that the error is confined and a nice(r) error page is displayed.

This is NOT intended to handle errors that can be anticipated. Components must do their own error handling. It is just a better worst-case when an error is not handled correctly.

fix #659

screenshot from 2018-12-30 06-45-07 screenshot from 2018-12-30 06-43-16 screenshot from 2018-12-30 06-41-51 screenshot from 2018-12-30 06-41-38

Merge request reports

Loading