Re:We Fell Out of Love with Next.js and Back in Love with Ru...
by phoronixrly on Sunday May 04, 2025 @08:43AM
(#43886395)
Let's be honest -- the alternative is an API call with poor or no error-handling with the brilliant UX of either hanging with an endless loading indicator, or just flat out lying that the counter was incremented...
[ Parent
| on HN ]
Re:We Fell Out of Love with Next.js and Back in Love with Ru...
by ziml77 on Sunday May 04, 2025 @12:35PM
(#43887703)
> or just flat out lying that the counter was incremented...
Which is what HN does and it sucks. It's very common for me to vote on a couple things and then after navigating around I come back to see that there are comments that don't have a vote assigned.
Of course the non-JS version would be even more annoying. I would never click those vote buttons if every vote caused a full page refresh.