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
Using this with redux-persist in version 5.9.1 results in thrown error-message: redux-persist: invalid option passed to persistStore: "transforms". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.
Please update usage-example to something like this:
// "loading"-attribute should not be loaded from storeconstloadPartialLoginFilter=createFilter('login',null,['loading'],'blacklist');// prepare persist configurationconstpersistConfig={key: 'root',
storage,whitelist: ['settings','login'],transforms: [loadPartialLoginFilter]};constpersistedReducer=persistReducer(persistConfig,reducers);conststore=createStore(persistedReducer,{},composeEnhancers(applyMiddleware(ReduxThunk,createLogicMiddleware(logics,deps))));// "transforms" is not applied hereexportconstpersistor=persistStore(store);
The text was updated successfully, but these errors were encountered:
Current documentation inside
README.md
contains the following example code:Using this with
redux-persist
in version5.9.1
results in thrown error-message:redux-persist: invalid option passed to persistStore: "transforms". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.
Please update usage-example to something like this:
The text was updated successfully, but these errors were encountered: