You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Thanks for great work with the wizard. I just began using it on a new react project and it works good.
I'm having one issue though. I have two pages setup with routing. When I go to another page and come back to my page with the wizard steps, it won't render the step content.
Note that I have put the Wizard inside index.js, this is so that I have access to the context from everywhere. When I put the Wizard inside my actual wizard component then it works fine.
Perhaps I'm doing it wrong (after all I'm new to react) ?
The text was updated successfully, but these errors were encountered:
I bit more investigation and it turns out that it is initialStepIndex that coulde be the issue here. Take a look at the updated example. Now even though the wizard is inside my wizard component when I come back to the page with the wizard it doesn't render anything. This is when the initialStepIndex is set. If it's not set then it renders the step at index 0.
Hi,
Thanks for great work with the wizard. I just began using it on a new react project and it works good.
I'm having one issue though. I have two pages setup with routing. When I go to another page and come back to my page with the wizard steps, it won't render the step content.
Check out this code example that reproduces the issue:
https://codesandbox.io/s/react-wizard-d33qy
Note that I have put the Wizard inside index.js, this is so that I have access to the context from everywhere. When I put the Wizard inside my actual wizard component then it works fine.
Perhaps I'm doing it wrong (after all I'm new to react) ?
The text was updated successfully, but these errors were encountered: