{"action":"opened","issue":{"url":"https://api.github.com/repos/yelouafi/redux-saga/issues/190","repository_url":"https://api.github.com/repos/yelouafi/redux-saga","labels_url":"https://api.github.com/repos/yelouafi/redux-saga/issues/190/labels{/name}","comments_url":"https://api.github.com/repos/yelouafi/redux-saga/issues/190/comments","events_url":"https://api.github.com/repos/yelouafi/redux-saga/issues/190/events","html_url":"https://github.com/yelouafi/redux-saga/issues/190","id":140616688,"number":190,"title":"How to wait for 2 actions and join their results in redux-saga","user":{"login":"kfrajtak","id":1510452,"avatar_url":"https://avatars.githubusercontent.com/u/1510452?v=3","gravatar_id":"","url":"https://api.github.com/users/kfrajtak","html_url":"https://github.com/kfrajtak","followers_url":"https://api.github.com/users/kfrajtak/followers","following_url":"https://api.github.com/users/kfrajtak/following{/other_user}","gists_url":"https://api.github.com/users/kfrajtak/gists{/gist_id}","starred_url":"https://api.github.com/users/kfrajtak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kfrajtak/subscriptions","organizations_url":"https://api.github.com/users/kfrajtak/orgs","repos_url":"https://api.github.com/users/kfrajtak/repos","events_url":"https://api.github.com/users/kfrajtak/events{/privacy}","received_events_url":"https://api.github.com/users/kfrajtak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-14T09:17:13Z","updated_at":"2016-03-14T09:17:13Z","closed_at":null,"body":"Hi,\r\nin my application I'd like to define a saga that will handle either `LEFT_CHANGED` or `RIGHT_CHANGED` actions and continue with new action `SOURCES_CHANGED` with payload consisting of payloads of the two aforementioned actions.\r\n\r\n    export function* watchLeftRightChanged() {  \r\n      const left = null;\r\n      const right = null;\r\n      while (true) {\r\n        const result = yield take(['LEFT_CHANGED', 'RIGHT_CHANGED'])\r\n        switch (result.type) {\r\n          case 'LEFT_CHANGED':\r\n            yield put({ type: 'SOURCES_CHANGED', result, right })\r\n            continue;\r\n          case 'RIGHT_CHANGED':\r\n            yield put({ type: 'SOURCES_CHANGED', left, result })\r\n            continue\r\n        }\r\n      }\r\n    }\r\nThe problem is that `left` and `right` properties of the action are null when `SOURCES_CHANGED` action is emitted and their value is not kept (I believe dut to the nature of the iterator).\r\n\r\nThanks for help,\r\nKarel"}}