react-use-wizard icon indicating copy to clipboard operation
react-use-wizard copied to clipboard

Last active (viewed) step

Open kalicki opened this issue 2 years ago • 2 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

kalicki avatar Feb 09 '22 21:02 kalicki

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

devrnt avatar Mar 01 '22 22:03 devrnt

@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

5ebastianMeier avatar Apr 28 '22 07:04 5ebastianMeier