VueComponents are accumulating as the view gets updated because of l-map. On a cleap app, the increase of VueComponents isn't so bad, but it's there. In our app, the problem is even worse affecting our app performance (1022 VueComponents to 2000+ just from repeating step 5. to 6 below).
https://codesandbox.io/s/simple-todo-app-with-vue-91kyc
The number of VueComponents stay consistent as the view gets updated, commenting out l-map does so.
@camper6 thanks for the very detailed issue. We did a memory investigation some time ago.. I will check the demo and report during the day
@camper6 I've gotten around to investigate this only now, I am sorry, i've been able to reproduce, checking possible causes now
@camper6 I managed to find the issue, fix it and release version 2.2.1 that address the issue.
THIS WAS A GREAT CATCH, and is going to be a performance boost for many complex applications.
KUDOS to you.
If you can try 2.2.1 and let me know if it fixes the problem on your side too I would be even more grateful
@DonNicoJs Finally had the time to update vue2-leaflet. Rerun tests and went through the steps to check for memory leak, and found VueComponents remain consistent after switching views with route.
So problem solved!
Thanks for your time and great job, Don. I'll close this issue now.
@camper6 Glad that it solved your issue! Sorry again for the long time before I could go and investigate this issue.
Most helpful comment
@camper6 I managed to find the issue, fix it and release version 2.2.1 that address the issue.
THIS WAS A GREAT CATCH, and is going to be a performance boost for many complex applications.
KUDOS to you.
If you can try 2.2.1 and let me know if it fixes the problem on your side too I would be even more grateful