Closed soonyh closed 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.
when isLazyMount set true, user action records cannot be retained。 Like the value of the input box in the previous step