I am trying to add a whitelist in my redux-persist but it doesnt works, Without whitelist it is working perfect but when I add white List it doesnt work.
here is my code
store.js
import { createStore, applyMiddleware } from "redux";
import thunk from "redux-thunk";
import { composeWithDevTools } from "redux-devtools-extension";
import rootReducer from "./rootReducer";
import { persistReducer } from "redux-persist";
import storage from "redux-persist/lib/storage";
const persistConfig = {
key: "root",
storage,
};
const persistedReducer = persistReducer(persistConfig, rootReducer);
const initialState = {};
const middleware = [thunk];
const store = createStore(
persistedReducer,
composeWithDevTools(applyMiddleware(...middleware))
);
export default store;
I am trying to add a whitelist in my redux-persist but it doesnt works, Without whitelist it is working perfect but when I add white List it doesnt work.
here is my code
store.js
_app.js