Re:We Fell Out of Love with Next.js and Back in Love with Ru...
by nine_k on Saturday May 03, 2025 @04:35PM
(#43882070)
Unless you can guarantee RTT under 100ms, you have to manage some state on client side, else your UI will feel sluggish.
[ Parent
| on HN ]
Re:We Fell Out of Love with Next.js and Back in Love with Ru...
by freetonik on Saturday May 03, 2025 @06:09PM
(#43882767)
I’d rather have sluggish UI with proper feedback than potentially inconsistent states which I often experience with modern SPAs. At least that represents reality. Just today I was posting an ad on the local classifieds page, and the visual (client) state convinced me that everything was fast and my photos are uploaded. Turned out all state was lost and never reached the server, and I had to redo everything again.
Re:We Fell Out of Love with Next.js and Back in Love with Ru...
by const_cast on Saturday May 03, 2025 @06:31PM
(#43882915)
It’s trivial to achieve under 100ms in the US with even just one server.
Most companies aren’t international.
Re:We Fell Out of Love with Next.js and Back in Love with Ru...
by ummonk on Saturday May 03, 2025 @09:26PM
(#43883744)
Without keep-alive, any HTTPS request requires multiple round trips to complete.
Re:We Fell Out of Love with Next.js and Back in Love with Ru...
by ndriscoll on Sunday May 04, 2025 @08:56AM
(#43886451)
Fortunately every browser made in the last 25 years supports keepalive. e.g. Firefox (and according the the reporter of this bug, Chrome) won't even let you disable it[0].
Re:We Fell Out of Love with Next.js and Back in Love with Ru...
by devnull3 on Saturday May 03, 2025 @07:08PM
(#43883088)
Barring the interactivity SPAs will also end up talking to server anyway. So even SPAs will feel sluggish in a high latency env.
Re:We Fell Out of Love with Next.js and Back in Love with Ru...
by victorbjorklund on Monday May 05, 2025 @06:48AM
(#43893599)
Phoenix Liveview works pretty good without client side state. Sure if you just have a toggle mobile menu you might sprinkle some JS for it but other state lives in the server and the delta is sent to the client via websockets