-
Notifications
You must be signed in to change notification settings - Fork 585
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
卸载应用后,内存没有释放,内存没有降低,导致打开过多应用后浏览器崩溃 #1017
Comments
unmountApp方法的传参是什么,如果没有明确清空keep-alive应用的数据,是不会释放内存的 |
unmountApp(‘xxx’,{ destroy: true, clearAliveState: true }) 按照官网的,2个都传入了true还是没有销毁内存,虽然应用缓存是没了但是内存还在占用 |
destroy: true去掉试一下 |
不行,一开始我就是没设置destroy,不能清内存,然后把2个属性都加上也是不生效。 |
同求 |
子应用多次渲染内存累加,导致这种现象的原因有很多,可以参考配置开启umd模式,优化内存和性能,如果依然无法解决,最好能提供代码看一下 @wuhaining @yahoolcj |
同求 |
@bailicangdu 官方大佬,帮忙看看这个内存问题啊。没打开几个tab就 1个G内存了,关了还请不掉。是用umd的。 |
问题描述
复现步骤
同时我想问,在vue里当多个页面都是访问同一个微前端url时 ,有什么优化手段,每次打开应用都要加载一次微前端的入口资源
上传截图
复现仓库
环境信息
The text was updated successfully, but these errors were encountered: