diff --git a/common/index.jsx b/common/index.jsx index 3f4d9555..334c95c4 100644 --- a/common/index.jsx +++ b/common/index.jsx @@ -15,10 +15,10 @@ import notificationsSaga from './sagas/notifications'; 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') { @@ -54,5 +54,7 @@ const renderRoot = Root => { renderRoot(Root); if (module.hot) { - module.hot.accept(); + module.hot.accept('reducers/index', () => + store.replaceReducer(require('reducers/index').default) + ); }