{"action":"opened","issue":{"url":"https://api.github.com/repos/apollographql/apollo-client/issues/4111","repository_url":"https://api.github.com/repos/apollographql/apollo-client","labels_url":"https://api.github.com/repos/apollographql/apollo-client/issues/4111/labels{/name}","comments_url":"https://api.github.com/repos/apollographql/apollo-client/issues/4111/comments","events_url":"https://api.github.com/repos/apollographql/apollo-client/issues/4111/events","html_url":"https://github.com/apollographql/apollo-client/issues/4111","id":378368362,"node_id":"MDU6SXNzdWUzNzgzNjgzNjI=","number":4111,"title":"Data is Null in query","user":{"login":"japrogramer","id":1387859,"node_id":"MDQ6VXNlcjEzODc4NTk=","avatar_url":"https://avatars0.githubusercontent.com/u/1387859?v=4","gravatar_id":"","url":"https://api.github.com/users/japrogramer","html_url":"https://github.com/japrogramer","followers_url":"https://api.github.com/users/japrogramer/followers","following_url":"https://api.github.com/users/japrogramer/following{/other_user}","gists_url":"https://api.github.com/users/japrogramer/gists{/gist_id}","starred_url":"https://api.github.com/users/japrogramer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/japrogramer/subscriptions","organizations_url":"https://api.github.com/users/japrogramer/orgs","repos_url":"https://api.github.com/users/japrogramer/repos","events_url":"https://api.github.com/users/japrogramer/events{/privacy}","received_events_url":"https://api.github.com/users/japrogramer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-07T16:33:08Z","updated_at":"2018-11-07T16:33:08Z","closed_at":null,"author_association":"NONE","body":"\r\n**Intended outcome:**\r\nI expected data to be something even if loading or an error occoured\r\n\r\n**Actual outcome:**\r\ndata seems to be null\r\n\r\n**How to reproduce the issue:**\r\n```\r\n               <Query\r\n                query={EmailFromTokenQuery}\r\n                variables={{ token: context.token }}\r\n                skip={ready}\r\n              >\r\n                {({ data }) => {\r\n                  if (data == null) return null;\r\n                  if (data.loading) return null;\r\n                  if (data.error) return `Error!: ${data.error}`;\r\n                  if (data.invitationByToken && !ready){\r\n                    const set_email = context.Change('email');\r\n                    this.setState({ready: true},\r\n                    () => set_email({target: {value: data.invitationByToken.invitee}})\r\n                    );\r\n                  }\r\n                  const HOLDMAYBE =\r\n                    (\r\n                      <FormControl className={classes.formControl}>\r\n                        <Error errors={errors} name={'email'} />\r\n                        <InputLabel htmlFor=\"email\">Email:</InputLabel>\r\n                        <Input\r\n                          disabled\r\n                          id=\"email\"\r\n                          type='email'\r\n                          value={context.email}\r\n                          onChange={context.Change('email')}\r\n                          endAdornment={<InputAdornment position=\"end\">\r\n                            <IconButton>\r\n                             *\r\n                            </IconButton>\r\n                            </InputAdornment>}\r\n                        />\r\n                      </FormControl>\r\n                    )\r\n                  return null;\r\n                }}\r\n              </Query>\r\n\r\n```\r\n\r\n**Versions**\r\n\r\n  System:\r\n    OS: Linux 4.18 Arch Linux undefined\r\n  Binaries:\r\n    Node: 8.11.2 - ~/.nvm/versions/node/v8.11.2/bin/node\r\n    Yarn: 1.7.0 - ~/.nvm/versions/node/v8.11.2/bin/yarn\r\n    npm: 3.10.10 - ~/Code/work/sixnexus/frontclient/node_modules/.bin/npm\r\n  Browsers:\r\n    Firefox: 63.0.1\r\n  npmPackages:\r\n    apollo-boost: ^0.1.10 => 0.1.20 \r\n    apollo-link-ws: ^1.0.8 => 1.0.9 \r\n    react-apollo: ^2.1.9 => 2.2.4 \r\n\r\n"}}
{"actor":{"display_login":"japrogramer"}}