{"action":"created","issue":{"url":"https://api.github.com/repos/redux-saga/redux-saga/issues/1617","repository_url":"https://api.github.com/repos/redux-saga/redux-saga","labels_url":"https://api.github.com/repos/redux-saga/redux-saga/issues/1617/labels{/name}","comments_url":"https://api.github.com/repos/redux-saga/redux-saga/issues/1617/comments","events_url":"https://api.github.com/repos/redux-saga/redux-saga/issues/1617/events","html_url":"https://github.com/redux-saga/redux-saga/issues/1617","id":364496025,"node_id":"MDU6SXNzdWUzNjQ0OTYwMjU=","number":1617,"title":"yield is not defined","user":{"login":"z937010871","id":18677021,"node_id":"MDQ6VXNlcjE4Njc3MDIx","avatar_url":"https://avatars2.githubusercontent.com/u/18677021?v=4","gravatar_id":"","url":"https://api.github.com/users/z937010871","html_url":"https://github.com/z937010871","followers_url":"https://api.github.com/users/z937010871/followers","following_url":"https://api.github.com/users/z937010871/following{/other_user}","gists_url":"https://api.github.com/users/z937010871/gists{/gist_id}","starred_url":"https://api.github.com/users/z937010871/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z937010871/subscriptions","organizations_url":"https://api.github.com/users/z937010871/orgs","repos_url":"https://api.github.com/users/z937010871/repos","events_url":"https://api.github.com/users/z937010871/events{/privacy}","received_events_url":"https://api.github.com/users/z937010871/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-09-27T14:11:56Z","updated_at":"2018-09-28T06:31:41Z","closed_at":null,"author_association":"NONE","body":"    function* update(){\r\n       Alert.alert(message, null, [{ text: '确定', onPress:()=> yield put(back('LoginPage'))\r\n}\r\n![image](https://user-images.githubusercontent.com/18677021/46151863-51f06680-c2a2-11e8-9a05-d50149be60df.png)\r\n"},"comment":{"url":"https://api.github.com/repos/redux-saga/redux-saga/issues/comments/425335781","html_url":"https://github.com/redux-saga/redux-saga/issues/1617#issuecomment-425335781","issue_url":"https://api.github.com/repos/redux-saga/redux-saga/issues/1617","id":425335781,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTMzNTc4MQ==","user":{"login":"shinima","id":5550931,"node_id":"MDQ6VXNlcjU1NTA5MzE=","avatar_url":"https://avatars3.githubusercontent.com/u/5550931?v=4","gravatar_id":"","url":"https://api.github.com/users/shinima","html_url":"https://github.com/shinima","followers_url":"https://api.github.com/users/shinima/followers","following_url":"https://api.github.com/users/shinima/following{/other_user}","gists_url":"https://api.github.com/users/shinima/gists{/gist_id}","starred_url":"https://api.github.com/users/shinima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinima/subscriptions","organizations_url":"https://api.github.com/users/shinima/orgs","repos_url":"https://api.github.com/users/shinima/repos","events_url":"https://api.github.com/users/shinima/events{/privacy}","received_events_url":"https://api.github.com/users/shinima/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T06:31:41Z","updated_at":"2018-09-28T06:31:41Z","author_association":"COLLABORATOR","body":"不好意思，`cb('user-press-confirm')` 那边我写错了。需要添加一个 null：\r\n\r\n```diff\r\nfunction* update() {\r\n  const result = yield cps(cb => {\r\n-   Alert.alert(message, null, [{ text: '确定', onPress: () => cb('user-press-confirm') }])\r\n+   Alert.alert(message, null, [{ text: '确定', onPress: () => cb(null, 'user-press-confirm') }])\r\n  })\r\n}\r\n```"}}
{"actor":{"display_login":"shinima"}}