DEV Community

Discussion on: VueJS is dead, long live VueJS!

Collapse
 
stevetaylor profile image
Steve Taylor

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.

Collapse
 
pringels profile image
Peter Ringelmann

You're writing single page apps in embedded environments?

Thread Thread
 
stevetaylor profile image
Steve Taylor

Yes. Smart TV apps tend to run in a browser and there isn’t a whole lot of horsepower to work with.

Thread Thread
 
puritanic profile image
Darkø Tasevski

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.

Thread Thread
 
stevetaylor profile image
Steve Taylor

I’m using React, but if it was up to me, I’d probably use Svelte instead.

Thread Thread
 
stevetaylor profile image
Steve Taylor

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.

Thread Thread
 
pineapplethief profile image
pineapplethief

Svelte could be great for embedded since bundle size is a non-issue and no runtime gives performance boost