How to reset the state of a Redux store?
One way to do that would be to write a root reducer in your application. The root reducer would normally delegate handling the action to the reducer generated by combineReducers(). However, whenever it receives USER_LOGOUT action, it returns the initial state all over again. For example, if your root reducer looked like this: const rootReducer … Read more