DEV Community

Discussion on: Should you use created() or mounted() in Vue?

Collapse
 
pranavkumar389 profile image
Pranav Kumar

I usually use 'beforeMount' hook to make APIs calls.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

consider using beforeCreate, but you wouldn't have access to this. Otherwise, created would be nice.