TanStackT
TanStack3y ago
4 replies
unique-blue

How to disable Nuxt SSR running queries?

I am trying to use TanStack Query with Nuxt for a pre-rendered/SSG/Jamstack app with client-side data fetching. For this reason I want to stop TanStack Query from running queries on the server (at pre-render). There does not seem to be an ssr option, and the closest thing I have found is setting enabled to process.client. Is this fine? It's tricky to avoid hydration warnings with e.g. isFetching though.
Was this page helpful?