Is there any way to react to manage the state between components? For example, a component A takes me to component B and B returns to A, but with its original state, to avoid further processing, since there is a lot of data.
Lift it up to their shared common ancestor. Then it will be preserved between remounting of children.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.