Created
March 30, 2018 12:01
-
-
Save agenthunt/72c13d42fd897df51d0fdf5abab3325e 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 * as Users from '../stars/users'; | |
const appReducer = combineReducers({ | |
users: Users.rootReducer | |
}); | |
function* rootSaga(args) { | |
yield fork(Users.rootSaga, args); | |
} | |
const enhancer = composeEnhancers(applyMiddleware(...middlewares)); | |
export default function configureStore() { | |
const store = createStore(appReducer, {}, enhancer); | |
sagaMiddleware.run(rootSaga, store.dispatch); | |
return store; | |
} | |
... | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment