Resetting Error Boundary Error State

added by JavaScript Kicks
10/1/2018 7:42:20 AM

359 Views

For bunpkg, I use a Wizard component to display a series of steps to generate UNPKG links. When a request to Web API fails, an error is caught with an Error Boundary component and display an error message in ErrorBoundary.FallbackComponent (from react-error-boundary, a simple but better implementation found on React documentation).


0 comments