João Bezerra
Explore posts from serversIs it ok to use a global store to persist component state between mounts?
If for some reason you want to render that component elsewhere and you did not expect the state to be transferred there as well.You mean, if I had two instances of a component which uses a global store, the problem would be that they would both share the same store instead of each having a separate store?
Resetting that state can sometimes be too important to leave to chance.I don't understand what you mean by this. How does using a global store mean the same as or have as a consequence that resetting that state would be left to chance?
20 replies