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

Custom Vue.js 3 Plugins

Prevent Memory Leaks by Destroying Tippy onUnmounted 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.

Prevent Memory Leaks by Destroying Tippy onUnmounted

In this lesson, we make sure to clean up any event listeners that tippy might be registering on unmount of the ToolTip component. We can do this with tippy’s destroy method. This prevents possible memory leaks that might hinder the performance of our app.

Links