Spinner/skeleton awaiting server component
Answered
Xander posted this in #help-forum
XanderOP
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.
8 Replies
American Chinchilla
Do you mean loading.tsx @Xander
Answer
XanderOP
looks like I mean Suspense fallback yes thanks!
American Chinchilla
Your welcome, happy coding
@American Chinchilla Your welcome, happy coding
XanderOP
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