ironbar-persea/frontend/root/store.prod.js
2018-09-03 02:03:23 -05:00

19 lines
486 B
JavaScript

import createSagaMiddleware from 'redux-saga';
import {compose, createStore, applyMiddleware} from 'redux';
import createRootReducer from './reducer';
import createRootSaga from './saga';
export default function createRootStore() {
// sagaMiddleware = createSagaMiddleware()
// store = createStore createRootReducer(), compose(
// applyMiddleware sagaMiddleware
// )
store = createStore(createRootReducer());
// sagaMiddleware.run(createRootSaga());
return store
}