Open Luckygirlllll opened 5 years ago
Pay attention if you are using and Immutable library in your reducers, in my case i was using seamless-immutable
. So i use this library https://github.com/hilkeheremans/redux-persist-seamless-immutable with redux-persist, and the implementation was something like that:
const transformerConfig = {
whitelistPerReducer: {
auth: ['userInfo'],
discounts: ['discounts', 'myExchanges'],
points: ['currentPoints', 'historyPoints']
}
}
;
const persistConfig = {
key: 'primary',
storage: AsyncStorage,
whitelist: ['auth', 'points', 'discounts'],
stateReconciler: seamlessImmutableReconciler,
transforms: [seamlessImmutableTransformCreator(transformerConfig)]
};
I think this is related: https://github.com/rt2zz/redux-persist/issues/1008
I'm getting white flashes and white screen of death after the app is second time after adding redux-persist. Version of "redux-persist" is "^5.10.0".
Here is my App.js file:
Here is my ./redux/store file:
What can be the problem? and how is possible to fix it?