I faced the case of a very repetitive scenario where I am receiving object data as a property that can be mutable inside the component. I was playing with @Prop, a clone helper and @Watch to make it all work according to VueJS standard (props need to stay immutable).
Here is a solution I quickly wrote to make it easier and cleaner.
I faced the case of a very repetitive scenario where I am receiving object data as a property that can be mutable inside the component. I was playing with
@Prop
, a clone helper and@Watch
to make it all work according to VueJS standard (props need to stay immutable).Here is a solution I quickly wrote to make it easier and cleaner.