S
S
s_cruze442021-01-24 23:04:40
Vue.js
s_cruze44, 2021-01-24 23:04:40

Why doesn't vue reload the component after changing some value in the object?

I have a list and I have a form. I click on an element from the list in which we want to change some values. We filled out the form, the mutation passed, everything was recorded in the state, but to see the change, you need to exit the route level above and go back, then everything will change. (If you add or remove elements from the list, then everything is dynamic)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2021-01-25
@DKWLB

means the data is not reactive. Most likely you are changing the values ​​in the array. Without seeing the code, it's hard to guess, but maybe an excerpt from the documentation will help you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question