Next.js Discord

Discord Forum

Suspense fallback UI doesnt show on page refresh

Unanswered
Belgian Hare posted this in #help-forum
Open in Discord
Avatar
Belgian HareOP
Image
Image
Image

25 Replies

Avatar
Don't you see the skeleton even after hard-refresh?
Avatar
Belgian HareOP
np :((
Avatar
copy the link and paste in the new tab or in the different browser, you should get skeleton
Avatar
Belgian HareOP
i dont sadly
very weird :/
i even revalidated the path on useeffect
Avatar
Belgian HareOP
i think i found the culprit
@James4u (Tag me if needed)
Image
Avatar
useEffect is not needed here, you do server-side data fetching and pass down to the component, you just need to show
Avatar
Belgian HareOP
i know but i have to save the data somewhere too
to components in other files
Image
so this worked
but weird issue
i tried console.log in my client component and it shows on server too?
how come
Image
how come it printed on server
nvm
Image
Avatar
Belgian HareOP
wait
this issue is caused by html2pdf loading dynamic too 😭
Image
@James4u (Tag me if needed) wont load that html2pdf component dynamic 😑
So all the issues you've seen by me are solved by just not loading the component ( which has html2pdf ) as dynamic bruh