loading.tsx weird behaviour
Answered
Northeast Congo Lion posted this in #help-forum
Northeast Congo 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
Northeast Congo LionOP
bumping this
what
nd thats weird, yeah
do you have another <Suspense > layer inside your page.tsx?
@ᴉuɐpɹɐɐ what
Northeast Congo LionOP
Accidentally clicked on the don’t ask to ask thing lol
@ᴉuɐpɹɐɐ is this build or on dev?
Northeast Congo 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
Northeast Congo LionOP
yea
im using trpc, so it uses that to fetch data from the backend
i also saw this similar issue on github:
interesting
Northeast Congo 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
Northeast Congo LionOP
Downgraded to v14.2.0. Works fine now
Answer
Northeast Congo LionOP
🤔