jcmcneal / react-step-wizard

A modern flexible step wizard component built for React.
MIT License
583 stars 126 forks source link

about 'isLazyMount' #36

Closed soonyh closed 4 years ago

soonyh commented 5 years ago

when isLazyMount set true, user action records cannot be retained。 Like the value of the input box in the previous step

jcmcneal commented 4 years ago

You will have to persist the state of your component somewhere else like in a parent component or a global state like redux. I haven't tried it with useState but you could look into that. isLazyLoad will unmount the component when it's not in view so keep that in mind.