redux persist prevent 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']
};