Next.js Discord

Discord Forum

Spinner/skeleton awaiting server component

Answered
Xander posted this in #help-forum
Open in Discord
I have an async component that fetches data server side, so currently the whole page just blocks whilst that data fetches. How do I create a loader component that awaits data server-side, not client side.
Answered by American Chinchilla
Do you mean loading.tsx @Xander
View full answer

8 Replies

American Chinchilla
Do you mean loading.tsx @Xander
Answer
looks like I mean Suspense fallback yes thanks!
Your welcome, happy coding
@American Chinchilla Your welcome, happy coding
doesn't seem to work though
whilst it's fetching the fallback doesn't appear
though it may be more requests outside the suspense boundry nvm