Skip to content

Commit

Permalink
🐛 fix vue demo memory leak (#675)
Browse files Browse the repository at this point in the history
Co-authored-by: zhangchao <80254174@oppo.com>
  • Loading branch information
zczhangchao51 and zhangchao committed Jun 18, 2020
1 parent fe778a1 commit 0be945c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/vue/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export async function mount(props) {

export async function unmount() {
instance.$destroy();
instance.$el.innerHTML = '';
instance = null;
router = null;
}

2 comments on commit 0be945c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for qiankun ready!

Built with commit 0be945c

https://qiankun-i7pg6fmjd.vercel.app

@iamliusong
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

栈溢出问题以上方法并不能解决问题,而且这样操作每次切换应用页面加载更慢,是还需要其他配置吗?

Please sign in to comment.