Migrating to v3
Learn how to migrate from v2 to v3
Stepperize v3 brings with it a number of naming changes to make the pattern.
It also adds a switch
method that allows to render in a simpler way the components we want for each step.
Breaking Changes
Name changes in the values returned by the hook
The values returned by the useStepper
hook have been renamed to make the pattern more consistent.
currentStep
is nowcurrent
.isFirstStep
is nowisFirst
.isLastStep
is nowisLast
.getStepById
is nowget
.goToNextStep
is nownext
.goToPrevStep
is nowprev
.goToStep
is nowgoTo
.
New Features
New switch
method
The switch
method has been added to the useStepper
hook. This method allows us to render the components we want for each step in a simpler way.
Add all
property
The all
property has been added to the object returned by the useStepper
hook. This property contains all the steps in the stepper.
Edit on GitHub
Last updated on