How vue listens to the completion of asynchronous component loading

< keep-alive: max= "30" >

            <template v-if="tab.name===activeName">
                <component v-bind:is="currentTabComponent" v-bind="currentTabComponent.defaults"></component>
            </template>
        </keep-alive>
How do the asynchronous components in

component know when the load is complete, and are there any functions like callback?

Apr.20,2022

$nextTick?


dispatch a completion event in the mounted hook inside component:

handleDone() {
    console.log(``)
}
Menu