title: Next.js + React Query (data is undefined)
body: <p>This is the first time to use React Query with Next.</p>
  <p>My problem is this, I am trying to make a query with useQuery, but the result of my &quot;data&quot;, which I called &quot;response&quot; is undefined.</p>
  <p>I don't understand why I'm making an error, because the code I have is basically what I have done so far.</p>
  <p>My app.js code:</p>
  <pre><code>const App = ({ Component, pageProps }) =&gt; {
    return (
      &lt;&gt;
        &lt;QueryClientProvider client={queryClient}&gt;
          &lt;Hydrate state={pageProps.dehydratedState}&gt;
            &lt;Component {...pageProps} /&gt;
          &lt;/Hydrate&gt;
        &lt;/QueryClientProvider&gt;
      &lt;/&gt;
    )
  }
  </code></pre>
  <p>My threads.js code:</p>
  <pre><code>const { data: response } = useQuery(['threads', { token: stateToken }], QueryThreads)
  console.log(response.data)
  </code></pre>
  <p>I hope you have a great day!</p>