logoalt Hacker News

ysavir05/04/20251 replyview on HN

True, I shouldn't have said in memory. As the GP mentioned, you can store the counter value in a URL param. There are ways to achieve dynamic behavior without having to load or store values into JS memory.


Replies

procaryote05/05/2025

That is more work both for the developers and the servers though. You need to re-render the whole page every change, rather than make a local change (or a tiny request if it needs to persist)

show 1 reply