You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got this error with react-native app and HMR:
Unexpected key "offline" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "user". Unexpected keys will be ignored.
my configureStore.js
/* global __DEV__ */import{applyMiddleware,createStore,compose}from'redux';import{offline}from'@redux-offline/redux-offline';importofflineConfigfrom'@redux-offline/redux-offline/lib/defaults';constcreateStoreWithMiddleware=compose(applyMiddleware(
...middlewares,),offline({
...offlineConfig,persistOptions: {whitelist: ['user'],},}),)(createStore);conststore=createStoreWithMiddleware(reducers);if(module.hot){module.hot.accept(()=>{constnextRootReducer=require('../modules/index').default;// eslint-disable-linestore.replaceReducer(nextRootReducer);});}exportdefaultstore;
something wrong with my code or is there bug in redux-offline
The text was updated successfully, but these errors were encountered:
I've got this error with react-native app and HMR:
Unexpected key "offline" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "user". Unexpected keys will be ignored.
my configureStore.js
something wrong with my code or is there bug in redux-offline
The text was updated successfully, but these errors were encountered: