Next.js Discord

Discord Forum

Static route indicator on pages with "use client"

Answered
Willow shoot sawfly posted this in #help-forum
Open in Discord
Willow shoot sawflyOP
Recently upgraded to Next.js 15, and there is now an indicator showing if a page is static, however it seems to be shown even for pages that have a "use client" directive, shouldn't these be considered dynamic? Or am I misunderstanding something?
Answered by B33fb0n3
dynamic pages are dynamic pages, when you using dynamic parts on your page. For example: dynamic props, cookies, headers, ... Using client components, to make the page to a dynamic page (from nextjs considered as dynamic), then you cant do that with just client components.

Of course your content changes based on the data returned by the call
View full answer

6 Replies

Willow shoot sawflyOP
Okay, so what is considered dynamic?
Because my pages fetch data on the client using react query, so I would consider them to be dynamic, but guess not?
@Willow shoot sawfly Okay, so what is considered dynamic?
dynamic pages are dynamic pages, when you using dynamic parts on your page. For example: dynamic props, cookies, headers, ... Using client components, to make the page to a dynamic page (from nextjs considered as dynamic), then you cant do that with just client components.

Of course your content changes based on the data returned by the call
Answer
Willow shoot sawflyOP
Okay, I think I get it, thanks
happy to help