redux-persist-filesystem-storage icon indicating copy to clipboard operation
redux-persist-filesystem-storage copied to clipboard

redux-persist failed to create sync storage. falling back to noop storage.

Open savithri-lab opened this issue 3 years ago • 2 comments

savithri-lab avatar Feb 17 '22 11:02 savithri-lab

Hi, do you have any more details about this issue, or any replication steps?

robwalkerco avatar May 11 '22 07:05 robwalkerco

facing the same issue here below is my store.js file code

import { persistStore, persistReducer } from 'redux-persist';
import appReducer from './slices';
import loginSlice from './appSlices/loginSlice';
import thunk from 'redux-thunk';
import FilesystemStorage from "redux-persist-filesystem-storage";

const persistConfig = {
  key: 'root',
  storage: FilesystemStorage
}

let rootReducer = combineReducers({
  appReducers: appReducer
})

let persistedReducer = persistReducer(persistConfig, rootReducer);

const reduxStore = () => {
  let store = configureStore({
    reducer: persistedReducer,
    middleware: [thunk]
  });
  let persistor = persistStore(store);
  return { store, persistor }
}

export default reduxStore;

Malik-Usman17 avatar Jul 04 '23 13:07 Malik-Usman17