This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
image-juicer/app/store/configureStore.production.js
2017-04-05 16:15:35 -04:00

16 lines
472 B
JavaScript

// @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';
const router = routerMiddleware(hashHistory);
const enhancer = applyMiddleware(thunk, router);
export default function configureStore(initialState) {
return createStore(rootReducer, initialState, enhancer); // eslint-disable-line
}