logoalt Hacker News

_heimdalltoday at 1:31 PM1 replyview on HN

Just because data can be rendered to DOM on the client doesn't mean it always should be.

I'll try to render HTML wherever the data is stored. Meaning, if the data lives in a hosted database I'll render on the server. If data is only stored on the client, I'll render there.

Its less about bundle size in my opinion and more about reduced complexity and data security.

That said, I've never been a fan of RSC and don't see it solving the "reduced complexity" goal.


Replies

nfw2today at 5:49 PM

There is no additional data security if you are sending a rendered version of it to client instead of raw version.

Data that will be rendered on the client generally should be sent to the client in my opinion because you can easily determine if bugs are a rendering problem or a data problem without sifting through server logs.

show 1 reply