Next.js Discord

Discord Forum

"force-static" on loading pages?

Unanswered
Silver Fox posted this in #help-forum
Open in Discord
Avatar
Silver FoxOP
I can see in the documentatoin that force-static works on pages, routes and layouts. Does that extend to the loading.tsx pages?

7 Replies

Avatar
IIRC, loading.tsx are always static
Avatar
Silver FoxOP
What if my loading.tsx taking in props?
Avatar
Then it'll be dynamic.
Avatar
Silver FoxOP
Well that makes sense lol
Avatar
but If it fetches data, it'll be completely dynamic.

IIRC, it has the same behaviour has other pages.
Avatar
Silver FoxOP
Thank you!
Avatar
Mark solution please