Home > Net >  Redux store does not clear on refresh
Redux store does not clear on refresh

Time:07-19

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.

  • Related