Closed jessemlay closed 3 years ago
I cannot for the life of me understand how I need to reset the wizard when my modal closes.
Is there a way I can call the set method from a functional component ?
This doesn't work. function reset() { <WithWizard render={({ set, step }) => { console.log(step); set('chart selection'); }} />; }
figured it out: render={({ next, previous, push }) => (
I cannot for the life of me understand how I need to reset the wizard when my modal closes.
Is there a way I can call the set method from a functional component ?
This doesn't work. function reset() { <WithWizard render={({ set, step }) => { console.log(step); set('chart selection'); }} />; }