DEV Community

Pitfalls of Vue's reactivity

Dirk Hoekstra on November 01, 2019

My Vue views would sometimes refuse to automatically re-render. After slamming Vue.$forceUpdate() everywhere in my codebase, I decided enough was e...
Collapse
 
tobiobeck profile image
Tobi Obeck

You said "Unfortunately, you cannot call the Vue.set() function from the view."

It is possible to call the set function from the template via its alias $set.
vuejs.org/v2/api/#vm-set