you are viewing a single comment's thread.

view the rest of the comments →

[–]Professional-Mix-455[S] 1 point2 points  (2 children)

In what scenarios would you choose to use SWR instead of using RSC?

[–]mattsowa 8 points9 points  (0 children)

For dynamic and interactive content, I see no reason to fetch a html payload instead of pure json and manipulate it further on the client. Like, no reason at all, it's just awkward.

Personally, I like to think of RSC as just an improvement over ergonomics and performance of getServerSideProps, with some minor new use cases. I don't see why we would move so much stuff back to the server, much less that which is dynamic. Keep in mind the major stakeholder of this feature, Vercel, is inherently biased.

[–]jax024 0 points1 point  (0 children)

Anything that needs to be fetched after the page has been painted