setup persist storage redux code example
Example: prevent specific state redux-persist
// backlist your reducer,
combineReducer({
isLoggingIn,
...
})
const persistConfig = {
key: 'auth',
storage: storage,
blacklist: ['isLoggingIn']
};
// backlist your reducer,
combineReducer({
isLoggingIn,
...
})
const persistConfig = {
key: 'auth',
storage: storage,
blacklist: ['isLoggingIn']
};