{"action":"created","issue":{"url":"https://api.github.com/repos/apollostack/react-apollo/issues/378","repository_url":"https://api.github.com/repos/apollostack/react-apollo","labels_url":"https://api.github.com/repos/apollostack/react-apollo/issues/378/labels{/name}","comments_url":"https://api.github.com/repos/apollostack/react-apollo/issues/378/comments","events_url":"https://api.github.com/repos/apollostack/react-apollo/issues/378/events","html_url":"https://github.com/apollostack/react-apollo/issues/378","id":196879335,"number":378,"title":"GraphQL errors are not correctly passed to component props","user":{"login":"davidye","id":17462763,"avatar_url":"https://avatars.githubusercontent.com/u/17462763?v=3","gravatar_id":"","url":"https://api.github.com/users/davidye","html_url":"https://github.com/davidye","followers_url":"https://api.github.com/users/davidye/followers","following_url":"https://api.github.com/users/davidye/following{/other_user}","gists_url":"https://api.github.com/users/davidye/gists{/gist_id}","starred_url":"https://api.github.com/users/davidye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidye/subscriptions","organizations_url":"https://api.github.com/users/davidye/orgs","repos_url":"https://api.github.com/users/davidye/repos","events_url":"https://api.github.com/users/davidye/events{/privacy}","received_events_url":"https://api.github.com/users/davidye/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-21T09:02:50Z","updated_at":"2016-12-21T17:30:50Z","closed_at":null,"body":"With apollo-client@0.5.23, it appears that:\r\n\r\n`(new ApolloError()) instanceof ApolloError // false`\r\n\r\nThis is causing errors to be thrown from here:\r\n\r\nhttps://github.com/apollostack/react-apollo/blob/02fe991c8645c939e5d41587c76c447c7081e02f/src/graphql.tsx#L381\r\n\r\nHere's the relevant code which changed recently in apollo-client:\r\n\r\nhttps://github.com/apollostack/apollo-client/blob/master/src/errors/ApolloError.ts#L3\r\n\r\n### Version\r\n- apollo-client@0.5.23\r\n- react-apollo@0.70.1\r\n"},"comment":{"url":"https://api.github.com/repos/apollostack/react-apollo/issues/comments/268585734","html_url":"https://github.com/apollostack/react-apollo/issues/378#issuecomment-268585734","issue_url":"https://api.github.com/repos/apollostack/react-apollo/issues/378","id":268585734,"user":{"login":"davidye","id":17462763,"avatar_url":"https://avatars.githubusercontent.com/u/17462763?v=3","gravatar_id":"","url":"https://api.github.com/users/davidye","html_url":"https://github.com/davidye","followers_url":"https://api.github.com/users/davidye/followers","following_url":"https://api.github.com/users/davidye/following{/other_user}","gists_url":"https://api.github.com/users/davidye/gists{/gist_id}","starred_url":"https://api.github.com/users/davidye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidye/subscriptions","organizations_url":"https://api.github.com/users/davidye/orgs","repos_url":"https://api.github.com/users/davidye/repos","events_url":"https://api.github.com/users/davidye/events{/privacy}","received_events_url":"https://api.github.com/users/davidye/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T17:30:50Z","updated_at":"2016-12-21T17:30:50Z","body":"@helfer it's probably because extending built-in classes cannot be properly subclassed with transpilers, see:\r\n\r\nhttp://stackoverflow.com/questions/33832646/extending-built-in-natives-in-es6-with-babel\r\nhttps://github.com/babel/babel/issues/1424\r\n"}}
{"actor":{"display_login":"davidye"}}