{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react/issues/8430","repository_url":"https://api.github.com/repos/facebook/react","labels_url":"https://api.github.com/repos/facebook/react/issues/8430/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/8430/comments","events_url":"https://api.github.com/repos/facebook/react/issues/8430/events","html_url":"https://github.com/facebook/react/issues/8430","id":191869609,"number":8430,"title":"Error messages swallowed in certain edge cases","user":{"login":"kuba-orlik","id":2697916,"avatar_url":"https://avatars.githubusercontent.com/u/2697916?v=3","gravatar_id":"","url":"https://api.github.com/users/kuba-orlik","html_url":"https://github.com/kuba-orlik","followers_url":"https://api.github.com/users/kuba-orlik/followers","following_url":"https://api.github.com/users/kuba-orlik/following{/other_user}","gists_url":"https://api.github.com/users/kuba-orlik/gists{/gist_id}","starred_url":"https://api.github.com/users/kuba-orlik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuba-orlik/subscriptions","organizations_url":"https://api.github.com/users/kuba-orlik/orgs","repos_url":"https://api.github.com/users/kuba-orlik/repos","events_url":"https://api.github.com/users/kuba-orlik/events{/privacy}","received_events_url":"https://api.github.com/users/kuba-orlik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-27T16:15:53Z","updated_at":"2016-11-27T17:35:33Z","closed_at":"2016-11-27T17:27:18Z","body":"I would like to report a bug.\r\n\r\nCurrently in certain cases (like the one reproduced below) critical error messages are not displayed in the developer console. Sometimes the view does not render at all and it's left to our guesswork to identify the culprit.\r\n\r\nHere's the relevant jsfiddle: \r\nhttps://jsfiddle.net/b1co3uex/10/\r\n\r\nYou can see that the only error being thrown is the one deliberately put in line 6. It blocks proper rendering of the view, yet no trace of it is show in the developer console.\r\n\r\nThe expected behaviour would be to catch the error and show it in developer console.\r\n\r\nMy current workaround is to wrap `setState` calls in `try/catch`, which is ugly - but it works. \r\n\r\nI suppose this is not by design, as React usually has excellent error reporting capabilities. \r\n\r\nI am aware that the issue might be caused by imperfections in my code. If there's a way to improve it while maintaining its functionality, I'm all ears :)\r\n\r\nI've been struggling with this issue for quite some time now. In the above jsfiddle you can see the error being reproduced in React 15.3.2.\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react/issues/comments/263135360","html_url":"https://github.com/facebook/react/issues/8430#issuecomment-263135360","issue_url":"https://api.github.com/repos/facebook/react/issues/8430","id":263135360,"user":{"login":"kuba-orlik","id":2697916,"avatar_url":"https://avatars.githubusercontent.com/u/2697916?v=3","gravatar_id":"","url":"https://api.github.com/users/kuba-orlik","html_url":"https://github.com/kuba-orlik","followers_url":"https://api.github.com/users/kuba-orlik/followers","following_url":"https://api.github.com/users/kuba-orlik/following{/other_user}","gists_url":"https://api.github.com/users/kuba-orlik/gists{/gist_id}","starred_url":"https://api.github.com/users/kuba-orlik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuba-orlik/subscriptions","organizations_url":"https://api.github.com/users/kuba-orlik/orgs","repos_url":"https://api.github.com/users/kuba-orlik/repos","events_url":"https://api.github.com/users/kuba-orlik/events{/privacy}","received_events_url":"https://api.github.com/users/kuba-orlik/received_events","type":"User","site_admin":false},"created_at":"2016-11-27T17:35:33Z","updated_at":"2016-11-27T17:35:33Z","body":"I understand. Thank you for your response. It's time to review the way we do ajax requests :)"}}
{"actor":{"display_login":"kuba-orlik"}}