Hacker News new | ask | show | jobs
by artificialLimbs 620 days ago
'preserve this element when my state is one way, but not in other states'

You could send the state back to the server with the request and respond appropriately on the backend. Or check in the db without sending it, if it lives in the db (it probably should?).