redux-persist-filesystem-storage
redux-persist-filesystem-storage copied to clipboard
redux-persist failed to create sync storage. falling back to noop storage.
Hi, do you have any more details about this issue, or any replication steps?
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;