brandon942
brandon942
Btw, I made a post-process that does just that, for those who are interested. https://github.com/brandon942/js-shrink
@posva It's certainly useful. But it's about defining a reactive ref that can trigger itself when it wants (as opposed to only on assignments). It's not about watchers who subscribe...
> Make the list of properties reactive and your watcher would re-run automatically You're right I could make the list reactive, but it's part of a plugin and I don't...
> If you have a benchmark that would be helpful sure, [bench](https://codesandbox.io/s/objective-wave-32fl4), my [diff](https://github.com/brandon942/vue/commit/19b3c0c43069f23f40f5b450f32e28796817b057#diff-bcc43f603b7c4c57e76cf39fd0abc7bb)
@jods4 The 2nd argument in $watch() is the callback function. It is called each time the return value of the 1st (watched) function changes. Since the 1st function always returns...
@RobbinBaauw I've taken a look. Overall, Vue3 seems to be slower than Vue2 and my no-retrack implementation [doesn't save as much in comparison](https://codepen.io/br345346/pen/oNxXBQv). I kindof expected this after seeing how...
@RobbinBaauw @jods4 Yea I was wondering. Classes don't seem to be used a lot. Class instance creation is way faster and their memory footprint is also a lot smaller because...
I'm describing language features that we really need for dealing with promises, which are a bit too opaque right now, and non synchronous flows that need to be accompanied with...
Not sure why they've put both interpolation expressions in the same effect without proof that they share the same dependencies. Just have a separate effect for each interpolation. The 2nd...