3 ms·
Yes, that's the best way. Fortunately, there are relatively few components that need a hack like that. PS Why did you post code a `deepClone` function? You cer
by paulddraper 4y ago
Yes, that's the best way. Fortunately, there are relatively few components that need a hack like that.
PS Why did you post code a `deepClone` function? You certainly don't need to deep clone.
- petilon 4y agodeepClone is convenient, when you want to modify a field that's deep inside the object.
- nicoburns 4y agoYou should only be cloning the modified object, not every single object in the array. That's what making things slow!
- paulddraper 4y agoYep mystery solved