title: Retrying failed graphql query with react hooks?
body: <p>I have the following example component and I'm hoping when there is a random failure, I can click a button to retry the query manually (through some user interaction). Is this possible by chance? I would also like if the resultant query is successful, then the page gets populated with the data (ie a rerender of sorts). </p>
  
  <pre><code>export default () =&gt; {
    let { loading, error, data } = useQuery(myGqlQuery)
  
    if (loading) {
      return &lt;LoadingComponent /&gt;
    }
  
    const reassign = () =&gt; {
      // I want this function to somehow retry the query to see if error has subsided
    }
  
    if (error) {
      return &lt;button onClick={reassign}&gt;Retry Query&lt;/button&gt;
    }
  </code></pre>
  
  <p>...</p>