Open alexandrebouttier opened 3 years ago
@alexandrebouttier you should use a middleware and export like this -
const persistedReducer = persistReducer(persistConfig, rootReducers); export const store = createStore(persistedReducer, applyMiddleware(thunk)); export const persistor = persistStore(store);
Originally posted by @mayank-budhiraja in https://github.com/rt2zz/redux-persist/issues/1314#issuecomment-866648161
@alexandrebouttier you should use a middleware and export like this -
Originally posted by @mayank-budhiraja in https://github.com/rt2zz/redux-persist/issues/1314#issuecomment-866648161