3 ms·
Vue's is especially nice in that it handles deep and imperative updates. For example: you have an observable foo, and it has an array bar. You can read foo.bar
by amitp 4y ago
Vue's is especially nice in that it handles deep and imperative updates.
For example: you have an observable foo, and it has an array bar. You can read foo.bar directly instead of needing a wrapper getter function. You can also update foo.bar = … instead of needing a setter function. You can also call foo.bar.sort() and Vue will pick this up.
I see lots of small reactive libraries but a lot of them will not pick up something like foo.bar.sort().