Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export function* watchMySagas() {
- while(true) {
- const { type, data } = yield([FETCH_MYTHING, UPDATE_MYTHING]);
- switch(type) {
- case FETCH_MYTHING:
- yield call(fetchMythingSaga);
- case UPDATE_MYTHING:
- yield call(updateMythingSaga);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement