Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

频繁切换子应用,dom 数量持续增加,导致持续内存增长 #1406

Open
1742020289 opened this issue Oct 14, 2024 · 0 comments
Open

Comments

@1742020289
Copy link

问题描述

问题的具体描述
频繁切换子应用的时候,dom 数量持续增加,内存持续增长

复现步骤

1.打开官方demo,使用vue3主应用
2.以vue 3 子应用 和 vue 2 子应用作为示例,为了让演示效果更加明显,分别在home.vue 中添加10000 个 dom,和5000个点击事件
image
3.反复在vue2子应用的home和vue3子应用的home 之间切换
image
4.结果:dom 和事件监听器没有被回收,内存占用很高
image
image

上传截图

请上传代码截图、控制台、终端等截图以帮助我们了解您的问题。
1.初始dom数量和内存占用
image
image

复现仓库

请提供一个精简的代码仓库,然后上传到自己的 github,以帮助我们复现您的问题。
复现仓库地址:https://github.com/1742020289/micro-app-demo.git

环境信息

与官方demo 一致

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant