Hacker News new | ask | show | jobs
by bk496 420 days ago
+1 have had multiple bugs arise because the state in the variable was not the same as the UI / DOM. Haven't had any problems a pattern similar to yours.

If you have the edge case of lots of update (assignments to .name) then just wrap the `.name = ...` in a leading debounce.