title: React-Query: How to useQuery when button is clicked
body: <p>I am new to this <a href="https://github.com/tannerlinsley/react-query" rel="noreferrer">react-query</a> library. </p>
  
  <p>I know that when I want to fetch data, with this library I can do something like this:</p>
  
  <pre><code>const fetchData = async()=&gt;{...}
  
  // it starts fetching data from backend with this line of code
  const {status, data, error} = useQuery(myKey, fetchData());
  </code></pre>
  
  <p>It works. But how to trigger the data fetching only when a button is clicked? , I know I probably could do something like <code>&lt;Button onPress={() =&gt; {useQuery(myKey, fetchData())}}/&gt;</code> , but how to manage the returned data and status...</p>