diff --git a/common/index.jsx b/common/index.jsx index 91ed1076..3652bd9c 100644 --- a/common/index.jsx +++ b/common/index.jsx @@ -16,10 +16,10 @@ import ensSaga from './sagas/ens'; import 'assets/styles/etherwallet-master.less'; const sagaMiddleware = createSagaMiddleware(); +let store; const configureStore = () => { let sagaApplied = applyMiddleware(sagaMiddleware); - let store; let middleware; if (process.env.NODE_ENV !== 'production') { @@ -56,5 +56,7 @@ const renderRoot = Root => { renderRoot(Root); if (module.hot) { - module.hot.accept(); + module.hot.accept('reducers/index', () => + store.replaceReducer(require('reducers/index').default) + ); }