{"action":"created","issue":{"url":"https://api.github.com/repos/apollographql/react-apollo/issues/1564","repository_url":"https://api.github.com/repos/apollographql/react-apollo","labels_url":"https://api.github.com/repos/apollographql/react-apollo/issues/1564/labels{/name}","comments_url":"https://api.github.com/repos/apollographql/react-apollo/issues/1564/comments","events_url":"https://api.github.com/repos/apollographql/react-apollo/issues/1564/events","html_url":"https://github.com/apollographql/react-apollo/issues/1564","id":289754613,"number":1564,"title":"Passing components state to query variables","user":{"login":"Ziker22","id":8571609,"avatar_url":"https://avatars2.githubusercontent.com/u/8571609?v=4","gravatar_id":"","url":"https://api.github.com/users/Ziker22","html_url":"https://github.com/Ziker22","followers_url":"https://api.github.com/users/Ziker22/followers","following_url":"https://api.github.com/users/Ziker22/following{/other_user}","gists_url":"https://api.github.com/users/Ziker22/gists{/gist_id}","starred_url":"https://api.github.com/users/Ziker22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ziker22/subscriptions","organizations_url":"https://api.github.com/users/Ziker22/orgs","repos_url":"https://api.github.com/users/Ziker22/repos","events_url":"https://api.github.com/users/Ziker22/events{/privacy}","received_events_url":"https://api.github.com/users/Ziker22/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-01-18T19:51:47Z","updated_at":"2018-02-15T05:08:32Z","closed_at":null,"author_association":"NONE","body":"Hi guys,\r\nIs it possible to somehow inject components state into the query ?\r\nSomething like with props ?\r\n\r\n```\r\noptions: (ownProps : any, ownState???) =>{\r\n        console.log(a)\r\n        return {\r\n            variables: {\r\n                name : ownProps.name\r\n                id:  ownState.id <-------------------------\r\n             \r\n            }\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/apollographql/react-apollo/issues/comments/365826861","html_url":"https://github.com/apollographql/react-apollo/issues/1564#issuecomment-365826861","issue_url":"https://api.github.com/repos/apollographql/react-apollo/issues/1564","id":365826861,"user":{"login":"AshesOfOwls","id":427439,"avatar_url":"https://avatars2.githubusercontent.com/u/427439?v=4","gravatar_id":"","url":"https://api.github.com/users/AshesOfOwls","html_url":"https://github.com/AshesOfOwls","followers_url":"https://api.github.com/users/AshesOfOwls/followers","following_url":"https://api.github.com/users/AshesOfOwls/following{/other_user}","gists_url":"https://api.github.com/users/AshesOfOwls/gists{/gist_id}","starred_url":"https://api.github.com/users/AshesOfOwls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AshesOfOwls/subscriptions","organizations_url":"https://api.github.com/users/AshesOfOwls/orgs","repos_url":"https://api.github.com/users/AshesOfOwls/repos","events_url":"https://api.github.com/users/AshesOfOwls/events{/privacy}","received_events_url":"https://api.github.com/users/AshesOfOwls/received_events","type":"User","site_admin":false},"created_at":"2018-02-15T05:08:32Z","updated_at":"2018-02-15T05:08:32Z","author_association":"NONE","body":"I also had this same problem with a use case of trying to validate whether a username has already been taken, it needs to query pretty frequently. I would love to be able to access the state instead of creating wrapper components."}}
{"actor":{"display_login":"AshesOfOwls"}}