W
W
WapSter2021-01-19 13:28:02
Vue.js
WapSter, 2021-01-19 13:28:02

Keeping track of keys and their values ​​in computed?

Vue 3 has an amazing ability to track not only any object, but also the state of its internal properties and computed react to changes in the internal state of the object. Is it possible to implement something similar in vue 2?
Vue example 3 - create new property of Vue object successfully tracked in computed

Vue 2 example - immediately if there is no property initially, then computed does not react to the new property

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question