使用keepAlive缓存路由,首次跳别的路由时候,被缓存的路由会执行unmounted方法 #3648
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
🐞 bug
Something isn't working
scope: keep-alive
Version
3.0.11
Reproduction link
https://github.com/MsBaiYi/oneBug
Steps to reproduce
What is expected?
期望被缓存的路由不执行销毁生命周期函数 (unmounted)
What is actually happening?
被缓存的路由组件首次跳别的路由会执行销毁生命周期函数
遇到这个bug的场景是添加面包屑功能,在面包屑存在的路由需要被缓存,关闭面包屑的路由组件应被释放
The text was updated successfully, but these errors were encountered: