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
My store is created with or without redux-persist dynamically. It would be nice to disable storage creation errors when a store is initialized without using the redux-persist persistedReducer and/or preferably when persistStore(store) is not called.
Example:
importstoragefrom"redux-persist/lib/storage";import{persistStore,persistReducer,}from"redux-persist";constpersistedReducer=persistReducer({key: "root",version: 1,
storage,// ignore error option here?},rootReducer);exportconstcreateStore=(persistToLocalStorage: boolean=false,)=>{conststore=configureStore({reducer: persistToLocalStorage
? persistedReducer
: rootReducer,});// only error here when persistStore?constpersistor=persistToLocalStorage ? persistStore(store) : undefined;return{ store, persistor };};
The text was updated successfully, but these errors were encountered:
My store is created with or without redux-persist dynamically. It would be nice to disable storage creation errors when a store is initialized without using the redux-persist
persistedReducer
and/or preferably whenpersistStore(store)
is not called.Example:
The text was updated successfully, but these errors were encountered: