Skip to content

Vue Composition API: nextTick

Mike Lyttle edited this page May 9, 2023 · 2 revisions

Class Component

    async mounted(): Promise<void> {
        await this.$nextTick();
        
        //...perform additional actions
    }

Composition API

import { nextTick, onMounted } from "vue";
onMounted(async () => {
    await nextTick();
    
    //...perform additional actions
});

Documentation

Clone this wiki locally