We are using redux persist. I am wondering, how do I clear some part of the state on refresh ?
CodePudding user response:
The point of redux-persist is pretty much that the store does not clear on refresh.
If you only want to persist parts of the store, either only persist some reducers, not your root reducer - or use the whitelist
and blacklist
features to define what exactly should be persisted.