Skip to content

Instantly share code, notes, and snippets.

@reime005
Last active September 14, 2019 12:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
/* src/store/rootSaga.js */
//...
function* exampleSagas() {
yield takeEvery(TAKE_EVERY_SAGA_ACTION, sendMediaSaga);
yield takeLatest(TAKE_LATEST_SAGA_ACTION, sendMediaSaga);
yield takeLeading(TAKE_LEADING_SAGA_ACTION, sendMediaSaga);
}
export const rootSaga = function* rootSaga() {
yield all([
fork(mediaQueueSaga),
fork(exampleSagas),
]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment