Answer the question
In order to leave comments, you need to log in
How to wait for all child Vue components to load?
There is a parent component Home.vue , child ones are loaded into it in a cycle. I want to organize the loading of the application so that it lasts until the last child component is mounted. How to organize it? Based on the documentation, prescribing $nextTick in the parent's mounted() does not give the desired result, that is, the code works almost immediately, and the final rendering of the page is much later.
mounted() {
this.$nextTick(() => {
this.loading = false;
})
},
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question