keep-alive组件里面的变量storageContainer存在内存泄漏
Vue version
lastest
Link to minimal reproduction
--
Steps to reproduce
keep-alive组件里面的变量storageContainer好像存在内存泄漏。
组件卸载的时候没有从storageContainer里面删掉vnode
What is expected?
--
What is actually happening?
--
System Info
No response
Any additional comments?
No response
是否可以在pruneCacheEntry函数中加一段判断, 内容如下 let index = Array.from(storageContainer.children).indexOf(cached.el); if (index >= 0) storageContainer.removeChild(storageContainer.childNodes[index])