#Suspense doesn't show fallback on page reload in prod but it works in dev

15 messages · Page 1 of 1 (latest)

toxic gazelle
#

so i have suspense and it works fine if you navigate to that page with a link but if you refresh the fallbback component doesnt show in prod it waits to get all of the data and then shows the component with no suspense, while in a dev build suspense shows on page refresh and when you navigate to the page, how can i fix this?

soft thistleBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

regal cape
#

Hi, I have the completely oposite problem. Hard reload shows the suspense correctly but client navigation triggers the closest loading.tsx, I feel like everytime I start doing something with app router everything behaves differently...

weary osprey
#

@regal cape loading.tsx will never show up for refreshing, its mentioned in the docs that its only and only for navigation.

regal cape
#

I know this, but in the example the client navigation still triggers the suspense

#

After all loading.{tsx,jsx} is just a suspense over the whole page

weary osprey
#

@toxic gazelle im not sure why your suspense isnt running for refreshing.. can you record all the stuff? both dev and prod

weary osprey
#

We are assuming ppr fixes this.. if it even is a bug.. but yea suspense will always show.. loading will only show on navigation.

regal cape
#

Will dig in the source, thanks for the support 👍

weary osprey
#

i agree on that

#

we can just accept and move on :D

toxic gazelle
toxic gazelle
#

oh it somehow works now even tho i didnt change anything