Closed ksielyov closed 2 years ago
` const persistConfig = { key: 'root', storage: AsyncStorage, whiteList: ['auth', 'restaurants'], };
const menuProductsPersist = { key: 'menuProducts', storage: AsyncStorage, blacklist: ['error'] } const rootReducer = combineReducers({ ... menuProducts: persistReducer(menuProductsPersist, menuReducer), ... });
In fact it is ignoring rules of no caching key "error" `
It was error from my side. Previous developer was incorrectly configured persistor whiteList: ['auth', 'restaurants']
whiteList: ['auth', 'restaurants']
` const persistConfig = { key: 'root', storage: AsyncStorage, whiteList: ['auth', 'restaurants'], };
const menuProductsPersist = { key: 'menuProducts', storage: AsyncStorage, blacklist: ['error'] } const rootReducer = combineReducers({ ... menuProducts: persistReducer(menuProductsPersist, menuReducer), ... });
In fact it is ignoring rules of no caching key "error" `