I keep getting this error in browser Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "dataElements"
I have @Prop() private dataElements: any[];
in my component. This prop is changed by the parent and by the child, also it might need a watcher to do some operations when it is changed.
How can i create a computed property out of it?