Whenever I open my browser, I encounter the following message:
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"
Within my component, I have defined
@Prop() private dataElements: any[];
. This particular prop undergoes changes from both the parent and the child components, and it may require a watcher to perform certain operations when its value is modified.
Is there a way for me to create a computed property based on this prop?