The difference is that hooks are in the component and executed on every render. Vue 3’d setup function would only be executed when the component is created.
Hooks is predicated on an assumption that creating functions is cheap, which isn’t always the case, especially in some old and/or embedded environments. This change seems to solve the same problems as hooks but in a more efficient manner.
Are you using Vue for building TV apps? I would love to hear your experiences with it if you did!
I was working on the Vue app built for TV last year and it was terrible in terms of performance and general usability. I guess that team that passed it to us was partly to blame because the code was a god damn spaghetti mess.
We're currently building apps for a few TV vendors and React is working fine, the only thing that Vue does better is the animations IMO.
The difference is that hooks are in the component and executed on every render. Vue 3’d setup function would only be executed when the component is created.
Hooks is predicated on an assumption that creating functions is cheap, which isn’t always the case, especially in some old and/or embedded environments. This change seems to solve the same problems as hooks but in a more efficient manner.
You're writing single page apps in embedded environments?
Yes. Smart TV apps tend to run in a browser and there isn’t a whole lot of horsepower to work with.
Are you using Vue for building TV apps? I would love to hear your experiences with it if you did!
I was working on the Vue app built for TV last year and it was terrible in terms of performance and general usability. I guess that team that passed it to us was partly to blame because the code was a god damn spaghetti mess.
We're currently building apps for a few TV vendors and React is working fine, the only thing that Vue does better is the animations IMO.
I’m using React, but if it was up to me, I’d probably use Svelte instead.
I’m using React, but if the choice was mine, I’d love to try Svelte instead. It doesn’t use a virtual DOM, so there’s less overhead.
Svelte could be great for embedded since bundle size is a non-issue and no runtime gives performance boost