loading.tsx weird behaviour
Answered
Cape lion posted this in #help-forum
Cape lionOP
I'm seeing some extremely weird behaviour with how loading.tsx works with a page using SSR.
Here's a video:
https://gyazo.com/d7f8c745cdd1479dc0bc169684eef309.mp4
Here's a video:
https://gyazo.com/d7f8c745cdd1479dc0bc169684eef309.mp4
20 Replies
Cape lionOP
bumping this
what
nd thats weird, yeah
do you have another <Suspense > layer inside your page.tsx?
@aardani what
Cape lionOP
Accidentally clicked on the don’t ask to ask thing lol
@aardani is this build or on dev?
Cape lionOP
It appears to only do it on the production build
Dev is perfectly fine
And nah I don’t have another suspense layer in the page
thats odd honestly
Cape lionOP
yea
im using trpc, so it uses that to fetch data from the backend
i also saw this similar issue on github:
interesting
Cape lionOP
which is almost EXACTLY my problem, except i dont have generateMetadata in that page
im starting to think that next isnt picking up the trpc calls as an async function
because it seems like a problem only when something that it doesnt recognize is taking a while to load
Cape lionOP
Downgraded to v14.2.0. Works fine now
Answer
Cape lionOP
🤔