devrnt / react-use-wizard

🧙 A React wizard (stepper) builder without the hassle, powered by hooks.

Home Page:https://devrnt.github.io/react-use-wizard/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Last active (viewed) step

kalicki opened this issue · comments

Return the last viewed/active step

Eg:
Step1 - viewed
Step2 - viewed
Step3 - current (active)
Step4 - viewed (prev active)

I went to step 4 and returned to step 3 so 4 was the last seen

Hi, could you provide some more context or a reproduction?

@kalicki if you only need the last one instead of a full history you could achieve it by handing over activeStep to a hook like usePrevious