0👍
Since Vue.set
doesn’t exist anymore, you can do this
const clone = JSON.parse(JSON.stringify(this.players));
clone[index].x = "foo";
this.players = clone;
- [Vuejs]-Deleting an object using its ID from pinia array
- [Vuejs]-How to pass data to PrimeVue MenuItems
Source:stackexchange.com