11 ms·
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
by thayne 5y ago
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.
- IanCal 5y agoThat seems like the kind of assumption that could cause this kind of bug. I don't need to do that, just the layers under.
- staticassertion 5y agoI'm sure there are a billion frameworks that persist state automatically for you exactly like that.