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).
But the error boundary wasn’t reset when a user moved onto a different step in the wizard.
I would like to share my failed attempt and the proper workaround to reset Error Boundary components.
But this can apply to your custom ErrorBoundary component.