0đź‘Ť
Solved it. The problem is with keys in v-for, :key prop, should be unique, so here is how I solved it, in mutations addNew, add new property tabId add like this:
state.newList.push({
tabId: new Date.now(),
typeId: null,
active: true,
briefing: false,
logs: [],
});
and App.vue change :key=“index” to :key=“event.tabId”
- [Vuejs]-Vuex commit commits only the last value of an array from a response
- [Vuejs]-How to create the perfect autosize textarea?
Source:stackexchange.com