Skip to content

Instantly share code, notes, and snippets.

@OleksivO OleksivO/post.js
Created Jan 16, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.