hilongjw / vue-lazyload

A Vue.js plugin for lazyload your Image or Component in your application.
http://hilongjw.github.io/vue-lazyload/
MIT License
7.99k stars 865 forks source link

bug: lazy-compoent slots will lost its data binding, unless use ':key' to replace self. #493

Open lihaochen opened 2 years ago

lihaochen commented 2 years ago

freeList.forEach(item => { remove(this.ListenerQueue, item) item.$destroy() }) there, if lazy component instance destroy self, will trigger its children slots destroy, and then lost data binding. Maybe we can remove listener instead of destroying it.