app/store/configureStore.production.js
// @flow
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import { hashHistory } from 'react-router';
import { routerMiddleware } from 'react-router-redux';
import rootReducer from '../reducers';
// import type { counterStateType } from '../reducers/counter';
const router = routerMiddleware(hashHistory);
const enhancer = applyMiddleware(thunk, router);
// export default function configureStore(initialState?: counterStateType) {
export default function configureStore(initialState) {
return createStore(rootReducer, initialState, enhancer); // eslint-disable-line
}