{"action":"created","issue":{"url":"https://api.github.com/repos/hyperapp/hyperapp/issues/388","repository_url":"https://api.github.com/repos/hyperapp/hyperapp","labels_url":"https://api.github.com/repos/hyperapp/hyperapp/issues/388/labels{/name}","comments_url":"https://api.github.com/repos/hyperapp/hyperapp/issues/388/comments","events_url":"https://api.github.com/repos/hyperapp/hyperapp/issues/388/events","html_url":"https://github.com/hyperapp/hyperapp/issues/388","id":260102189,"number":388,"title":"Error Handling","user":{"login":"okwolf","id":3735164,"avatar_url":"https://avatars3.githubusercontent.com/u/3735164?v=4","gravatar_id":"","url":"https://api.github.com/users/okwolf","html_url":"https://github.com/okwolf","followers_url":"https://api.github.com/users/okwolf/followers","following_url":"https://api.github.com/users/okwolf/following{/other_user}","gists_url":"https://api.github.com/users/okwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/okwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okwolf/subscriptions","organizations_url":"https://api.github.com/users/okwolf/orgs","repos_url":"https://api.github.com/users/okwolf/repos","events_url":"https://api.github.com/users/okwolf/events{/privacy}","received_events_url":"https://api.github.com/users/okwolf/received_events","type":"User","site_admin":false},"labels":[{"id":533252122,"url":"https://api.github.com/repos/hyperapp/hyperapp/labels/COMMUNITY","name":"COMMUNITY","color":"34495E","default":false},{"id":522275188,"url":"https://api.github.com/repos/hyperapp/hyperapp/labels/DISCUSSION","name":"DISCUSSION","color":"F7DC6F","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-09-24T17:44:43Z","updated_at":"2017-10-05T03:02:31Z","closed_at":null,"author_association":"MEMBER","body":"Please forgive me if we've already had a discussion on this topic, and I know this is subject to change with the API proposals brewing, but I wanted to capture the state of affairs as of this moment.\r\n\r\nBecause of the indirection with `events.action` and `events.resolve` it's not possible to catch any errors that are thrown within the execution of an action today. I believe the same will also hold true for the coming `hooks` API. It is possible to catch and handle view errors with an [HOC](https://facebook.github.io/react/docs/higher-order-components.html) however.\r\n\r\nReact 16 is introducing [Error Boundaries](https://facebook.github.io/react/blog/2017/07/26/error-handling-in-react-16.html) to handle this problem. I'm not proposing we add anything to core, but wondering what the best practice should be.\r\n\r\nHere's a small demo pen showing the two types of errors possible: https://codepen.io/okwolf/pen/rGWpgJ?editors=0010"},"comment":{"url":"https://api.github.com/repos/hyperapp/hyperapp/issues/comments/334345785","html_url":"https://github.com/hyperapp/hyperapp/issues/388#issuecomment-334345785","issue_url":"https://api.github.com/repos/hyperapp/hyperapp/issues/388","id":334345785,"user":{"login":"JorgeBucaran","id":56996,"avatar_url":"https://avatars1.githubusercontent.com/u/56996?v=4","gravatar_id":"","url":"https://api.github.com/users/JorgeBucaran","html_url":"https://github.com/JorgeBucaran","followers_url":"https://api.github.com/users/JorgeBucaran/followers","following_url":"https://api.github.com/users/JorgeBucaran/following{/other_user}","gists_url":"https://api.github.com/users/JorgeBucaran/gists{/gist_id}","starred_url":"https://api.github.com/users/JorgeBucaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JorgeBucaran/subscriptions","organizations_url":"https://api.github.com/users/JorgeBucaran/orgs","repos_url":"https://api.github.com/users/JorgeBucaran/repos","events_url":"https://api.github.com/users/JorgeBucaran/events{/privacy}","received_events_url":"https://api.github.com/users/JorgeBucaran/received_events","type":"User","site_admin":false},"created_at":"2017-10-05T03:02:31Z","updated_at":"2017-10-05T03:02:31Z","author_association":"OWNER","body":"@okwolf What could possibly go wrong?"}}
{"actor":{"display_login":"JorgeBucaran"}}