marshallswain / feathers-pinia

Connect your Feathers API to the elegant data store for Vue
52 stars 22 forks source link

Calling clone() or reset() does not reset to null #170

Open juw177 opened 6 months ago

juw177 commented 6 months ago

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() }