T
TanStack3y ago
ratty-blush

new QueryClient in Next.js application

I have a Next.js application using the pages router. At the moment all data is being fetching client-side with react-query. If I am not using SSR should I still create the new QueryClient inside of the App component in the _app.tsx file or should it be outside of the App component or does it not matter? Thanks is advance!
1 Reply
helpful-purple
helpful-purple3y ago
Inside

Did you find this page helpful?