import { createStore, applyMiddleware, compose } from 'redux';
import createSagaMiddleware, { END } from 'redux-saga';
import reducer, { initialState } from './reducer';

const configureStore = () => {
  const sagaMiddleware = createSagaMiddleware()
  const store = createStore(
    reducer,
    compose(
      applyMiddleware(sagaMiddleware),
      window.devToolsExtension ? window.devToolsExtension() : f => f
    )
  )

  store.runSaga = sagaMiddleware.run
  store.close = () => store.dispatch(END)

  if (module.hot) {
    module.hot.accept('./reducer', () => {
      store.replaceReducer(require('./reducer').default)
    })
  }

  return store
}

export default configureStore

@@ -164,16 +164,162 @@
 ucer';%0A%0A
+const getDevtools = () =%3E %7B%0A  if (__DEV__) %7B%0A    return window.devToolsExtension ? window.devToolsExtension() : (f) =%3E f%0A  %7D%0A  return (f) =%3E f%0A%7D%0A%0A
 const co
@@ -493,70 +493,21 @@
     
-window.devToolsExtension ? window.devT
+getDevt
 ools
-Extension() : f =%3E f
+()
 %0A   

Make devtool hook can be remove in production mode