How can i avoid this warning :
admin.js:32604 [Vue warn]: 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: "modalVar"
how to get ride of this warning because i don’t know how to get ride of this warning ?
Update
i used this code to get ride of it :
watch:{
modalVar(){
this.modal = this.modalVar;
},
modal(){
if(this.modal == false){
this.$parent.$emit('createmodalhide');
}
}
}
but i think this not the right way to do so