Answer the question
In order to leave comments, you need to log in
How to make object properties reactive?
Hello. I receive a response from the server
{
id1: {
name: 'name',
value: 1245,
},
id2: {
name: 'name',
value: 1245,
},
};
Answer the question
In order to leave comments, you need to log in
In general, the whole point was that the incoming response from the server was not a new object, but mutated the same object bypassing the vue proxy, so there was no redrawing. Possible solutions: make incoming data reactive, or
this.data = undefined;
this.data = receivedData;
this.data = {...receivedData};
You write to the storage ( vuex ) and change them to the state, then you can send the modified data if necessary
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question