the description for this gist
//... | |
const rootReducer = combineReducers({ | |
// ... | |
}); | |
const sagaMiddleware = createSagaMiddleware(); | |
// we apply saga as a simple middleware (Redux-Thunk for example) | |
const store = createStore(rootReducer, composeEnhancers( | |
applyMiddleware(sagaMiddleware) | |
)); | |
// if you have multiple watchers, you should execute .run() for every single one | |
sagaMiddleware.run(watchAuthSaga); | |
//... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment