Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

VueUse for Everyone

Timeouts and VueUse thumbnail image

Get access to the most comprehensive Vue.js video library in the world. Over 300 video lessons including the newest Vue 3 features.

Timeouts and VueUse

In this lesson, we take a look at useTimeout and useTimeoutFn VueUse composables for performing actions after a specified period of time. These composables can be useful for automatically hiding alerts after a delay.

While not mentioned during the lesson, it’s also worth sharing that VueUse exposes a promiseTimeout utility function that returns a promise that resolves after the specified timeout.

Links