Skip to content

Instantly share code, notes, and snippets.

@reime005
Last active September 14, 2019 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reime005/2a44f23c56cd8f3d585a159aa03315fa to your computer and use it in GitHub Desktop.
Save reime005/2a44f23c56cd8f3d585a159aa03315fa to your computer and use it in GitHub Desktop.
/* 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