Created
May 22, 2018 01:50
-
-
Save zaguiini/e4ff735eccf65db65c8df961bca66e9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createStore, applyMiddleware } from 'redux' | |
import createSagaMiddleware from 'redux-saga' | |
import loggerMiddleware from 'redux-logger' | |
import combinedReducer from 'src/store/reducers' | |
import rootSaga from 'src/store/sagas' | |
const sagaMiddleware = createSagaMiddleware() | |
sagaMiddleware.run(rootSaga) | |
export default createStore( | |
combinedReducer, | |
applyMiddleware( | |
sagaMiddleware, | |
loggerMiddleware, | |
), | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment