Open ChrisJVoss opened 6 years ago
@ChrisJVoss you're prices reducer persisted?
@ManuelJF No, I blacklisted prices. My understanding is that 'auth', 'search', 'setPrice', and 'catalog' should all be persisted. However, only 'auth' is persisted.
@ChrisJVoss shouldn't you be using persistCombineReducers instead of persistReducers?
@tommyalvarez persistCombineReducers isn't listed on the API guide, but I'll give it a shot. https://github.com/rt2zz/redux-persist/blob/master/docs/api.md
I'm also passing reducers
to persistReducers()
which is the result of calling redux's combineReducers()
on all my reducers.
Any solution to this?
I am using redux-persist and react-native's AsyncStorage but only one part of my store is being persisted. My "auth" part of state gets persisted without any problem but all other parts of my state (specifically the "catalog" portion) do not persist.
Here are my combined reducers:
Here is how I've set up my persistor and persistReducer:
Here I wrap my components with PersistGate:
And here is my reducer for the "catalog" portion of state.
If anyone could provide insight or point me in the right direction as to why my "catalog" might not be getting persisted I would appreciate that very much!