Calling clone() or reset() does not reset to null
Opened this issue · 0 comments
juw177 commented
If a clonedInstance has:
{ updatedProperty: test }
originalInstance has
{ updatedProperty: null }
Calling clonedInstance.reset() or originalInstance.clone() will not reset updatedProperty back to null and it remains as "test". Is this intended?
The only way I could reset the clone is by removing it from the store and getting it again:
if (instance.__isClone) {
instance.removeFromStore()
}