logoalt Hacker News

stavros05/03/20251 replyview on HN

Not between page loads.


Replies

tomnipotent05/03/2025

You absolutely did. It was common practice to stuff things in cookies or query strings to retain state between trips to the server so that some JS could do its job.

Every form also normally ends up duplicating validation logic both in JS for client-side pre-submit UX and server-side with whatever errors it returns for the JS to then also need to support and show to the user.

show 1 reply