Next.js Discord

Discord Forum

Suspense fallback UI doesnt show on page refresh

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

25 Replies

Don't you see the skeleton even after hard-refresh?
@James4u Don't you see the skeleton even after hard-refresh?
Belgian HareOP
np :((
copy the link and paste in the new tab or in the different browser, you should get skeleton
very weird :/
i even revalidated the path on useeffect
Belgian HareOP
i think i found the culprit
@James4u
@Belgian Hare Click to see attachment
useEffect is not needed here, you do server-side data fetching and pass down to the component, you just need to show
@James4u useEffect is not needed here, you do server-side data fetching and pass down to the component, you just need to show
Belgian HareOP
i know but i have to save the data somewhere too
to components in other files
so this worked
but weird issue
i tried console.log in my client component and it shows on server too?
how come
how come it printed on server
nvm
Belgian HareOP
wait
@Belgian Hare Click to see attachment
Belgian HareOP
this issue is caused by html2pdf loading dynamic too 😭
@James4u 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