Closed BobbieGoede closed 2 months ago
Resolves #74
This changes the way directive presets are handled, the underlying issue is similar to the one solved in https://github.com/vueuse/motion/pull/173, the preset variants are passed and reused and mutated down the line which is most noticeable in situations such as https://github.com/vueuse/motion/issues/74#issuecomment-1721145546.
To prevent this fix from influencing users variants (I suppose there are use cases where mutating a single motion is desired) I tried to only apply this change to directive presets.
๐ Linked issue
74
โ Type of change
๐ Description
Resolves #74
This changes the way directive presets are handled, the underlying issue is similar to the one solved in https://github.com/vueuse/motion/pull/173, the preset variants are passed and reused and mutated down the line which is most noticeable in situations such as https://github.com/vueuse/motion/issues/74#issuecomment-1721145546.
To prevent this fix from influencing users variants (I suppose there are use cases where mutating a single motion is desired) I tried to only apply this change to directive presets.
๐ Checklist