KeepAlive include
remove deactive component
should remove the component from keep-alive storageContainer
#5258
Labels
Version
3.2.26
Reproduction link
sfc.vuejs.org/
Steps to reproduce
show comp2
button to showcomp2
remove keep-alive comp1
button to removecomp1
from keep-alive include中文:
What is expected?
storage container remove comp1.element
What is actually happening?
storage container still have comp1.element
一个组件 deactivated 后 ,将其从 KeepAlive的include 中删除,KeepAlive的storageContainer不会删除此组件的element,导致此组件无法回收,造成内存泄漏。
When a component is deactivated, delete it from the
KeepAlive include
too. But the KeepAlive storageContainer still contains a element of the component, which causes memory leak.The text was updated successfully, but these errors were encountered: