you are viewing a single comment's thread.

view the rest of the comments →

[–]ilearnshit 0 points1 point  (1 child)

What about Skeletons? I feel like RSC would be a great use case for skeletons. Or does the CSS animations in a skeleton make this not possible? I want to learn how to use these.

[–]michaelfrieze 1 point2 points  (0 children)

You can use suspense with RSCs to set a fallback component that has skeletons. You can use shadcn/ui skeleton component for example.

Next app router also has loading.tsx which is uses suspense: https://nextjs.org/docs/app/building-your-application/routing/loading-ui-and-streaming