[Vuejs]-VUE 3 array not updating reactively but array[index] is

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;

Leave a comment