Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
savithri-lab opened this issue Feb 17, 2022 · 2 comments

Comments

@savithri-lab
Copy link

No description provided.

@robwalkerco
Copy link
Owner

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

@Malik-Usman17
Copy link

Malik-Usman17 commented Jul 4, 2023

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants