Using Vue.set in object with multiple nested objects Using Vue.set in object with multiple nested objects vue.js vue.js

Using Vue.set in object with multiple nested objects


The only non-reactive part is the new property you try to add in the fields object.

In order to add the googleInfos property, you have to set it in the mutation like this :

ADD_GOOGLE_INFOS (state, {index, infos}) {    Vue.set(state.entries[index].fields, 'googleInfos', infos);}