import * as Redux from 'redux'
import {rootReducer} from './reducers'
// TODO: put back rootReducerMock
// import {rootReducer, rootReducerMock} from './reducers'

declare global {
  interface Window {
    __REDUX_DEVTOOLS_EXTENSION__: Function
  }
}

const configureStore = (): Redux.Store<any> => {
  const devtools = window.__REDUX_DEVTOOLS_EXTENSION__
  const _module = module as any

  if (_module.hot) {
    const store = Redux.createStore(rootReducer, devtools && devtools())
    _module.hot.accept('./reducers', () => store.replaceReducer(require('./reducers')))
    return store
  }

  const store = Redux.createStore(rootReducer, devtools && devtools())
  return store
}

const store = configureStore()

export default store

import * as Redux from 'redux'
import {rootReducer, rootReducerMock} from './reducers'

declare global {
  interface Window {
    __REDUX_DEVTOOLS_EXTENSION__: Function
  }
}

const configureStore = (): Redux.Store<any> => {
  const devtools = window.__REDUX_DEVTOOLS_EXTENSION__
  const _module = module as any

  if (_module.hot) {
    const store = Redux.createStore(rootReducerMock, devtools && devtools())
    _module.hot.accept('./reducers', () => store.replaceReducer(require('./reducers')))
    return store
  }

  const store = Redux.createStore(rootReducer, devtools && devtools())
  return store
}

const store = configureStore()

export default store

--- 
+++ 
@@ -1,5 +1,7 @@
 import * as Redux from 'redux'
-import {rootReducer, rootReducerMock} from './reducers'
+import {rootReducer} from './reducers'
+// TODO: put back rootReducerMock
+// import {rootReducer, rootReducerMock} from './reducers'
 
 declare global {
   interface Window {
@@ -12,7 +14,7 @@
   const _module = module as any
 
   if (_module.hot) {
-    const store = Redux.createStore(rootReducerMock, devtools && devtools())
+    const store = Redux.createStore(rootReducer, devtools && devtools())
     _module.hot.accept('./reducers', () => store.replaceReducer(require('./reducers')))
     return store
   }
Comment out rootReducerMock for now
