We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b34250e commit cd2bcc0Copy full SHA for cd2bcc0
src/wizard.tsx
@@ -23,9 +23,9 @@ const Wizard: React.FC<WizardProps> = React.memo(
23
24
const previousStep = React.useCallback(() => {
25
if (hasPreviousStep.current) {
26
- setActiveStep((prev) => prev - 1);
+ setActiveStep((activeStep) => activeStep - 1);
27
}
28
- }, [setActiveStep]);
+ }, []);
29
30
// Callback to attach the step handler
31
const handleStep = React.useCallback((handler: Handler) => {
0 commit comments