useQuery runs on CSR?!
Hi!
When I try to build my next app, the useQuery hooks from my pages are triggered and fail with TRPCError (because you have to be authenticated).
I am using
The useQuery should run only on client side as mentioned in https://nextjs.org/docs/pages/building-your-application/rendering/client-side-rendering
Any idea how to debug/fix this?
When I try to build my next app, the useQuery hooks from my pages are triggered and fail with TRPCError (because you have to be authenticated).
I am using
ssr: false and my pages don't use getStaticProps or getServerSidePropsThe useQuery should run only on client side as mentioned in https://nextjs.org/docs/pages/building-your-application/rendering/client-side-rendering
Any idea how to debug/fix this?
Learn how to implement client-side rendering in the Pages Router.
