[Vuejs]-Page Unresponsive & Memory Leak Issue with Vuejs Application Running on Azure

0👍

We need to use some method to do some clean-up and solve the memory leak prior to removing the select DOM. We will keep a cleanup property in our Vue instance’s data object and we will use the Choices API’s destroy() method to perform the cleanup.

Eg: I am using clean function in my .js file

Clean: function () {
    // use the reference to Choices to perform clean up here
    // prior to removing the elements from the DOM

    this.< mention Method you want to cleanup>.destroy()
}

If you’re already using destroy in your project please follow this

Refer Avoiding Memory Leaks in Vue)

Leave a comment