Is the lifecycle hook in vue one after execution and then the next?

that"s the question!
for example, does mounted execute a function in created after created is executed
, whether asynchronous or Synchronize, before executing a function in mounted?

Mar.18,2021

is that a function in created, whether asynchronous or Synchronize, and then execute the function in mounted after it has been executed?

No, asynchrony does not wait for the result.

you can do the same

{
  created: function(){
    this.waitData = asyncCall();
  },
  mounted: function(){
    this.waitData.then(function(data) { ... })
  }
}
Menu