Comment
Comment by JMTQp8lwXL
Not using deep equality allows for huge performance gains. You can use an immutability library like https://github.com/guigrpa/timm to handle mutations, if you want to edit a nested property on an object and return a new object.