jcmcneal / react-step-wizard

A modern flexible step wizard component built for React.
MIT License
583 stars 126 forks source link

Add raiseOnStepError to StepWizard #90

Closed larry-perry closed 2 years ago

larry-perry commented 3 years ago

Hi!

Recently in an app I work on, someone deleted a step but didn't update all our goToStep usages causing our app to try to go to a step that no longer exists. We have since taken some mitigation steps to avoid this from happening again but it would be helpful if our exception monitoring also caught invalid usages.

This PR adds an optional param that defaults to the existing functionality