Next.js Discord

Discord Forum

"force-static" on loading pages?

Unanswered
Silver Fox posted this in #help-forum
Open in Discord
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

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

IIRC, it has the same behaviour has other pages.
Silver FoxOP
Thank you!