2 ms·
Not sure if it would fit with your use case, but for me, immer.js has been a game changer in terms of object equality/mutability. https://immerjs.github.io/imm
by lioeters 7y ago
Not sure if it would fit with your use case, but for me, immer.js has been a game changer in terms of object equality/mutability.
https://immerjs.github.io/immer/docs/introduction https://immerjs.github.io/immer/docs/introduction
Once all state/object changes are being updated this way, a simple === can check for object equality. It's so useful, it makes me wish this was baked into the language itself.