Advertisement
Guest User

Untitled

a guest
Dec 5th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export function* watchMySagas() {
  2.     while(true) {
  3.         const { type, data } = yield([FETCH_MYTHING, UPDATE_MYTHING]);
  4.         switch(type) {
  5.             case FETCH_MYTHING:
  6.                 yield call(fetchMythingSaga);
  7.             case UPDATE_MYTHING:
  8.                 yield call(updateMythingSaga);
  9.         }
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement