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
Hi Ken,
in fact, I don't know myself which one is better, mounted or created hook. I pretty much picked one at random :)
mounted
created
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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
Hi Ken,
in fact, I don't know myself which one is better,
mounted
orcreated
hook. I pretty much picked one at random :)