DEV Community

Discussion on: How I built a desktop app with vue in minutes

Collapse
 
masihfathi profile image
masih fathi

dose async/await and es6+ work in this environment?

Collapse
 
cthulhudev profile image
CthulhuDev

Yes it does. When bootstrapping a vue application, babel comes with it. So you can use async/await and ES2018 shenanigans

Collapse
 
thomas_ph35 profile image
Thomas Philippot

I thinks you can use AsyncData method from vue but I didn't tryed.
It was not usefull in this use case. 😀

Collapse
 
qm3ster profile image
Mihail Malo

asyncData is a Nuxt-specific thing that runs before mounting.
Normal Vue only has synchronous data() to initialize.

Thread Thread
 
thomas_ph35 profile image
Thomas Philippot

Ho my bad 😇 I guess I'm totaly used to nuxt 😆

Thread Thread
 
qm3ster profile image
Mihail Malo

Who are you calling a ho :o

Thread Thread
 
thomas_ph35 profile image
Thomas Philippot

Sorry ?
it was an Onomatopeia 😱 I didn't mean to be mean at all😮