title: Pass props to axios hook that implements react suspense
body: <p>i have been trying to create a hook that fetches data and takes advantage of <a href="https://reactjs.org/docs/concurrent-mode-suspense.html#approach-3-render-as-you-fetch-using-suspense" rel="nofollow noreferrer">react suspense</a>.
  Using the example in the page (and <a href="https://medium.com/weekly-webtips/how-to-improve-data-fetching-in-react-with-suspense-35b64990ad89" rel="nofollow noreferrer">this article</a>) I have created a function(i want to convert it to hook) that fetches data.</p>
  <p><strong>Example</strong></p>
  <p><a href="https://codesandbox.io/s/hungry-galois-060ib?file=/src/ProfileDetails.js:0-35" rel="nofollow noreferrer">Here on codesandbox</a></p>
  <p><strong>Problem</strong></p>
  <p>Currently I can't pass data through the function as it gets executed when it is called.I want to pass data in <code>useWrap(**HERE**)</code> and use it in <code>fetchData()</code></p>
  <p><strong>Expected behaviour / Target</strong></p>
  <ol>
  <li>I want to pass data to useWrap() and put it in fetchData()</li>
  <li>I want the useWrap to be a Hook in order to take advantage of basic hooks</li>
  <li>I want to take advantage of React Suspense</li>
  </ol>
  <p>Does someone know how to accomplish these needs and tell me what am i doing wrong?</p>
  <p>Thank you!</p>