disable redux-persist
This commit is contained in:
parent
60b4210c53
commit
24176b3e91
1 changed files with 4 additions and 4 deletions
|
@ -25,7 +25,7 @@ import {
|
||||||
syncReducer,
|
syncReducer,
|
||||||
userReducer,
|
userReducer,
|
||||||
} from 'lbryinc';
|
} from 'lbryinc';
|
||||||
import { createStore, applyMiddleware, compose } from 'redux';
|
import { createStore, applyMiddleware, combineReducers, compose } from 'redux';
|
||||||
import AppWithNavigationState, {
|
import AppWithNavigationState, {
|
||||||
AppNavigator,
|
AppNavigator,
|
||||||
navigatorReducer,
|
navigatorReducer,
|
||||||
|
@ -101,7 +101,7 @@ const persistOptions = Object.assign({}, v4PersistOptions, {
|
||||||
getStoredState: getStoredStateMigrateV4(v4PersistOptions),
|
getStoredState: getStoredStateMigrateV4(v4PersistOptions),
|
||||||
});
|
});
|
||||||
|
|
||||||
const reducers = persistCombineReducers(persistOptions, {
|
const reducers = combineReducers({
|
||||||
auth: authReducer,
|
auth: authReducer,
|
||||||
blacklist: blacklistReducer,
|
blacklist: blacklistReducer,
|
||||||
claims: claimsReducer,
|
claims: claimsReducer,
|
||||||
|
@ -138,11 +138,11 @@ const store = createStore(
|
||||||
);
|
);
|
||||||
window.store = store;
|
window.store = store;
|
||||||
|
|
||||||
persistStore(store, persistOptions, err => {
|
/* persistStore(store, persistOptions, err => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log('Unable to load saved SETTINGS');
|
console.log('Unable to load saved SETTINGS');
|
||||||
}
|
}
|
||||||
});
|
}); */
|
||||||
|
|
||||||
// TODO: Find i18n module that is compatible with react-native
|
// TODO: Find i18n module that is compatible with react-native
|
||||||
global.__ = str => str;
|
global.__ = str => str;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue