why is the dev-indicator showing the same route as "dynamic" on inital load, but "static" on client-side nav #79704
Replies: 1 comment
-
Great question! I was also confused by this behavior at first — here's what I found: 🔍 Why does the dev indicator say "dynamic" on hard reload but "static" on client-side nav?This is expected in some cases and depends on how you load the route:
Why? On a full reload, the route is processed server-side, so if your code uses anything like:
…it’ll be flagged as dynamic, even if the content is cacheable. But when you navigate via 💡 SuggestionTotally agree — it would be super helpful if the dev indicator showed why a route is considered dynamic (e.g., “ For now, if you're using the App Router, you can inspect:
If using Pages Router, check:
Hope this helps clarify the behavior! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
it is very confusing that the dev-indicator (the floating button in the bottom left corner) shows the same route as "dynamic" when initially loaded (hard refresh), but as "static" when i navigate to it via Link.
is that intended behavior? and if yes, what does it mean?
(also, to make it actually helpful, it would be great if the indicator could show why specifically a route opted into dynamic rendering, for example where are headers/cookies/... called)
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions