DEV Community

Discussion on: Vue.js Pattern for Async Requests: Using Renderless Components

Collapse
 
kenafh profile image
Ken

Lukas,

Great article, I have a quick question. You advocate doing your API calls in the mounted() hook. I've always read that you should kick off async stuff in created(). Your thoughts?

KLC

Collapse
 
lhermann profile image
Lukas Hermann

Hi Ken,

in fact, I don't know myself which one is better, mounted or created hook. I pretty much picked one at random :)