Redux Persist not working on IOS... works well on android
See original GitHub issueRedux persist works on android but is not working on IOS 11.0 my code is as below
// store.js
export const configureStore(intialState){
const rootPersistConfig = {
key: "root",
storage: storage,
debug: true
};
const persistedReducer = persistReducer(rootPersistConfig, rootReducer);
middlewares = [...];
let store = createStore(
persistedReducer,
initialState,
composeEnhancers(applyMiddleware(...middlewares))
);
let persistor = persistStore(store);
return { persistor, store };
}
and my app.js is as follows
// app.js
// other imports
const { persistor, store } = configureStore({});
export default App extends Component {
// all other things
render() {
return (
<Provider store={store}>
<AlertProvider>
<Root>
<PersistGate persistor={persistor} loading={null}>
<RootNav />
</PersistGate>
</Root>
</AlertProvider>
</Provider>
);
}
}
I also had redux-logger which I checked in the console neither the PERSIST event nor REHYDRATE occurs. The persistGate never gets lifted. Please help stuck from past 4 days. 😦 thanks in advance
Issue Analytics
- State:
- Created 6 years ago
- Comments:7
Top Results From Across the Web
Why redux-persist doesn't persist my data? - Stack Overflow
I made a reducer called handleUser that allows users to sign in. It works perfectly without redux-persist, but when I use it, the...
Read more >How To Use Redux Persist in React Native with Asyncstorage
The Redux Persist library provides an easy way to save a Redux store in the local storage of React Native apps. In this...
Read more >React native redux: how to use it? - Imaginary Cloud
Wondering how you can use redux and redux toolkit when ... We are using an Android emulator, but redux-persist also works with IOS....
Read more >Redux-persist: The Good parts - codeburst
If you are trying to migrate from redux-persist V5 to Filesystem storage on Android you may run into issues with holding onto your...
Read more >How to Persist Your Redux Store - How-To Geek
You now need to connect the library to your store. Wrap your root reducer using Redux Persist's persistReducer function. This lets Redux Persist ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Argh I’m having the opposite - works fine on iOS simulator but not on a connected Android device! Hopefully it’s a related issue and someone can respond…
App.js
navigator.js
app-loading.js