19 lines
486 B
JavaScript
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
|
|
}
|