Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For it to persist across refreshes you would need to do more than just mutate the object, you would need to actually write it back to a persisted location like localstorage or a cookie.


I'm sure there are a billion frameworks that persist state automatically for you exactly like that.


That seems like the kind of assumption that could cause this kind of bug. I don't need to do that, just the layers under.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: