3 ms·
Oh no. This: https://vuejs.org/guide/reactivity.html#Change-Detection-Caveats https://vuejs.org/guide/reactivity.html#Change-Detection-Cav... Vue.set(vm.s
by tiglionabbit 10y ago
Oh no. This: https://vuejs.org/guide/reactivity.html#Change-Detection-Caveats https://vuejs.org/guide/reactivity.html#Change-Detection-Cav...
Vue.set(vm.someObject, 'b', 2)
This is exactly the kind of gotchas that drove me away from the likes of Angular, Knockout, and Polymer to the simplicity of "Just re-render everything" that is React.
- mercer 10y agoYeah, I often use React or a more react-like library because of this reason. That said, I feel Vue does offer some things that, say, Angular/Knockout/Ractive don't to offset this, so I could see myself using it in some cases where I would otherwise go for React. I rather like the documentation, for one, as well as the tooling that offers single-file components (js/css/markup) and plays well with the editors I use (Sublime, Atom). I've also found that it's often easier for others to learn the angular-like markup compared to learning React.