Straight to the code. Mine is working well in React Native as I upgraded a long time ago. Recently I also use it in web version of the app, but no luck still.
The problem: Vanilla redux works well, and with debug: true I also see this log in console:
Straight to the code. Mine is working well in React Native as I upgraded a long time ago. Recently I also use it in web version of the app, but no luck still.
The problem: Vanilla redux works well, and with
debug: true
I also see this log in console:redux-persist/stateReconciler: rehydrated keys 'auth, cart, _persist'
But
auth
andcart
object from store is always reseted to their initial state after refreshing.This only happens in react web. In react native, it works well.
The Code:
custom-store.js
root-reducer.js
cart.js (sample, I stripped some code)
root-reducer.js (Yes I'm aware of
persistCombineReducer
, so I made it as a plain js object here)