Next.js Discord

Discord Forum

Static route indicator on pages with "use client"

Answered
Oak apple gall wasp posted this in #help-forum
Open in Discord
Oak apple gall waspOP
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

Oak apple gall waspOP
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?
@Oak apple gall wasp 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
Oak apple gall waspOP
Okay, I think I get it, thanks
happy to help