logoalt Hacker News

Capricorn2481yesterday at 3:48 PM1 replyview on HN

That's still state on the frontend, which the commenter claimed sites don't need.


Replies

ysaviryesterday at 5:52 PM

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.

show 1 reply