DEV Community

[Comment from a deleted post]
Collapse
 
martin2844 profile image
martin2844

Thanks man. Could'nt figure out why react wasnt catching changes in my array

Collapse
 
mvozaar profile image
mvozaar

I have spotted similar behavior, when i missed object changes. changes was done by delete_by_key. this is "mutating the state".

in original code was used spread operator to clone new object, but in removal was used delete. additions was detected, but removal not.