import { createStore } from 'redux';
import rootReducer from '../reducers';
import DevTools from '../containers/DevTools';

export default function configureStore(initialState) {
    const store = createStore(
        rootReducer,
        initialState,
        DevTools.instrument()
    );

    if (module.hot) {
        // Enable Webpack hot module replacement for reducers
        module.hot.accept('../reducers', () => {
            const nextRootReducer = require('../reducers').default;
            store.replaceReducer(nextRootReducer);
        });
    }

    return store;
}

@@ -288,279 +288,8 @@
 );%0A%0A
-    if (module.hot) %7B%0A        // Enable Webpack hot module replacement for reducers%0A        module.hot.accept('../reducers', () =%3E %7B%0A            const nextRootReducer = require('../reducers').default;%0A            store.replaceReducer(nextRootReducer);%0A        %7D);%0A    %7D%0A%0A
     

remove explicit call to HMR in configureStore dev