{"action":"created","issue":{"url":"https://api.github.com/repos/jackfranklin/remote-data-js/issues/2","repository_url":"https://api.github.com/repos/jackfranklin/remote-data-js","labels_url":"https://api.github.com/repos/jackfranklin/remote-data-js/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jackfranklin/remote-data-js/issues/2/comments","events_url":"https://api.github.com/repos/jackfranklin/remote-data-js/issues/2/events","html_url":"https://github.com/jackfranklin/remote-data-js/pull/2","id":161840665,"number":2,"title":"Add `case` method","user":{"login":"adamdicarlo","id":97462,"avatar_url":"https://avatars.githubusercontent.com/u/97462?v=3","gravatar_id":"","url":"https://api.github.com/users/adamdicarlo","html_url":"https://github.com/adamdicarlo","followers_url":"https://api.github.com/users/adamdicarlo/followers","following_url":"https://api.github.com/users/adamdicarlo/following{/other_user}","gists_url":"https://api.github.com/users/adamdicarlo/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdicarlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdicarlo/subscriptions","organizations_url":"https://api.github.com/users/adamdicarlo/orgs","repos_url":"https://api.github.com/users/adamdicarlo/repos","events_url":"https://api.github.com/users/adamdicarlo/events{/privacy}","received_events_url":"https://api.github.com/users/adamdicarlo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-06-23T05:03:00Z","updated_at":"2016-06-26T21:45:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jackfranklin/remote-data-js/pulls/2","html_url":"https://github.com/jackfranklin/remote-data-js/pull/2","diff_url":"https://github.com/jackfranklin/remote-data-js/pull/2.diff","patch_url":"https://github.com/jackfranklin/remote-data-js/pull/2.patch"},"body":"Adds a `case` instance method that allows switching on the state of the object.\r\n\r\nCaveats:\r\n\r\n* I saw your project, thought \"Neat!\" and this seemed like a natural addition... but I'm not 100% sure it will make sense (I haven't actually _used_ this library yet myself!)\r\n* If this seems like a good feature, maybe it'd make sense to actually use the `union-type` package?\r\n\r\n\r\nAnother thing I realized, that isn't necessarily just an issue with this PR: because of `#fetch` returning a Promise instead of a new `RemoteData` object (and because the object receiving 'fetch' does not mutate itself), well... the code that directly calls fetch can't check the status of the object:\r\n\r\n```js\r\nlet foo = new RemoteData()\r\nfoo.fetch()\r\n// foo's state is still NOT_ASKED\r\n```\r\n\r\n¯\\\\\\_(ツ)\\_/¯"},"comment":{"url":"https://api.github.com/repos/jackfranklin/remote-data-js/issues/comments/228624900","html_url":"https://github.com/jackfranklin/remote-data-js/pull/2#issuecomment-228624900","issue_url":"https://api.github.com/repos/jackfranklin/remote-data-js/issues/2","id":228624900,"user":{"login":"adamdicarlo","id":97462,"avatar_url":"https://avatars.githubusercontent.com/u/97462?v=3","gravatar_id":"","url":"https://api.github.com/users/adamdicarlo","html_url":"https://github.com/adamdicarlo","followers_url":"https://api.github.com/users/adamdicarlo/followers","following_url":"https://api.github.com/users/adamdicarlo/following{/other_user}","gists_url":"https://api.github.com/users/adamdicarlo/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdicarlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdicarlo/subscriptions","organizations_url":"https://api.github.com/users/adamdicarlo/orgs","repos_url":"https://api.github.com/users/adamdicarlo/repos","events_url":"https://api.github.com/users/adamdicarlo/events{/privacy}","received_events_url":"https://api.github.com/users/adamdicarlo/received_events","type":"User","site_admin":false},"created_at":"2016-06-26T21:45:36Z","updated_at":"2016-06-26T21:45:36Z","body":"'Update es5 build' should actually show as the last commit (that's how it shows locally), hmmm....."}}
{"actor":{"display_login":"adamdicarlo"}}