Re:You don't need Next.js – Why we migrated from Next to React
by TekMol on Wednesday January 01, 2025 @02:15PM
(#42568422)
What makes a dashboard app particularly suited to not just use simple server side and/or client side rendering but a framework?
[ Parent
| on HN ]
Re:You don't need Next.js – Why we migrated from Next to React
by ericyd on Thursday January 02, 2025 @09:01AM
(#42574468)
I think the main thing is that the downsides of SPA frameworks are significantly mitigated in a dashboard app.
Typically dashboards will be accessed on a desktop in an office setting with good internet, so initial load and asset size isn't a huge issue. Then you get benefits like client side routing which feels snappy, and live updating widgets is pretty simple. Of course it's a matter of opinion though.
Re:You don't need Next.js – Why we migrated from Next to React
by TekMol on Thursday January 02, 2025 @11:06AM
(#42575614)
I doubt that "client side routing" makes a site more snappy.
I think what you mean is that elements shared across pages (the header, the navigation bar etc) do not have to be sent again.
But those are very small anyhow. And you could bring the size down to zero by making them web components. Web components are cached along with the JS that defines them.