V-memo a new directive to improve your Vue 3 app performance
zelig880.com
zelig880.com
I think frameworks like SolidJS or Svelte are one step ahead in that regards. As far as I understand, they can surgically update the DOM without having to re-render the whole component. I wonder if Vue 4 will still use a Virtual DOM.
Memoization tends to work better as a manual fine-tune, when everything about how the data is created, updated and used is understood beforehand.
I'm with you, I think catering to those cases is a fool's errand, but I understand the argument for doing it.
[0] https://krausest.github.io/js-framework-benchmark/2022/table...