Merge pull request #146 from status-im/fix/persist-level-2

fix: network feature wasn't being loaded correctly due to redux-persist settings
This commit is contained in:
Iuri Matias 2019-03-29 16:40:25 -04:00 committed by GitHub
commit ff63fdcd80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import createSagaMiddleware from 'redux-saga';
import { all } from 'redux-saga/effects';
import { persistStore, persistReducer } from 'redux-persist';
import storage from 'redux-persist/lib/storage';
import hardSet from 'redux-persist/lib/stateReconciler/hardSet';
import autoMergeLevel2 from 'redux-persist/lib/stateReconciler/autoMergeLevel2';
import history from './history';
import rootReducer from './reducer';
@ -20,8 +20,8 @@ import metadata from './features/metadata';
const persistConfig = {
key: 'teller-network-store',
storage,
stateReconciler: hardSet,
blacklist: ['network']
stateReconciler: autoMergeLevel2,
blacklist: ["network"]
};
function *root() {