This is a migrated thread and some comments may be shown as answers.

Kendo for Vue memory cleanup

2 Answers 21 Views
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 06 Sep 2018, 07:23 PM

How does Kendo for Vue clean up any objects or events when you use them in a scenario where the controls are dynamically added and removed with Vue's "v-if" (where they get fully removed from the DOM)?  I would be interested in a general explanation, as well as specifically where in the Kendo code that this happens.  In the mixins, I can see them hooking up "mounted", but had expected to maybe see something for "beforeDestroy".  I'm not saying there is anything wrong with them, but just curious if I could encounter memory leaks, or if there is anything specific that I need to be doing with Kendo for Vue, to help prevent memory leaks.  Thanks!

 

2 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 06 Sep 2018, 07:29 PM
Looks like I just overlooked it.  If anyone else is interested, it's in kendo-base-components-vue-wrapper (see beforeDestroy).  Still, if there are any other things I should be aware of with Kendo for Vue, please comment.
0
Plamen
Telerik team
answered on 10 Sep 2018, 06:03 AM
Hi,

Yes indeed - we use the beforeDestroy event in the base component to clear the memory. We are not aware of any memory leaks at the moment, yet if you encounter some in the future, please let us know so we could investigate them deeper.

Regards,
Plamen
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or