Client component statically rendered even though tanstack query #75293
Unanswered
enszrlu
asked this question in
App Router
Replies: 1 comment
-
Client Components are SSR'd: reactwg/server-components#4 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, I am using latest nextjs version (15.1.6) with app router. I have a client component that uses Tanstack Query to fetch data from supabase on client side. Below is my page which client component 'PostComposer' is rendered. When I work on dev environment, my app works fine. But when I build, it builds this page as static so my tanstackQuery stucks at loading state. Why is this? I thought next would not statically render client routes?
Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions