logoalt Hacker News

ysaviryesterday at 5:52 PM1 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

procaryotetoday at 8:32 AM

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