0👍
✅
You should avoid manipulating props directly, since props are supplied by the parent component and can be changed without notice. I would do something like this:
data(){
return{
completedItems[],
localList: this.list
}
}
Then, manipulate and bind the localList
array instead of the prop, this should give you what you are looking for.
Source:stackexchange.com