Hacker News new | ask | show | jobs
by recursive 1097 days ago
What's a mutation bug?

In react, mutating a model is a bug. It's left up to the developer to remember not to do that. Outside of react, mutating a model seems like a natural fit for the way stuff actually works and it's not considered a bug.

1 comments

I mean a bug where some variable gets mutated implicitly, as a side effect of some other code change.