Open ito-star opened 6 years ago
Hi @Goolzzi, I'm currently having the exact same problem. componentsWillRecieveProps not working after adding redux-persist. Can u please share how u manage to fix the problem. Thanks you :D
Hi, @053steve It wasn't redux-persist problem. In my project, I have used react-native-router-flux and coded some actions in router component. When reducer updated, router component re-rendered so every Scene should be re-located in memory that was called componentDidMount in every components.
Hi @Goolzzi , thanks for the reply! From ur answer I was able to narrow down the source of my problem. As it turns out it wasn't redux-persist at all but it was my setup that was incorrect. My reducer was already combined using redux's "combineReducers". I had to use "persistReducer" instead of "persistCombineReducers". Thanks a lot mate.
Any chance you can help me ? i have same issue as u have..
https://github.com/rt2zz/redux-persist/issues/649
Thanks
componentWillReceiveProps(nextProps){ console.log('componentWillReceiveProps : auth') console.log(nextProps) }
you forgot nextProps thx.
Hi, I am getting stuck in using redux-persist v5 in my react-native project. To resolve this problem, I bootstrapped myself by finding in this channel, but can't find exact solution yet. Please check my codebase and give me some ticket / full example. Hope to hear from you. Thanks
configureStore.js
reducers.js
App.js