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

vif自定义组件会到导致内存泄漏,而vif原生dom则不会 #4856

Closed
vaelsy opened this issue Oct 26, 2021 · 1 comment
Closed

Comments

@vaelsy
Copy link

vaelsy commented Oct 26, 2021

Version

3.2.20

Reproduction link

sfc.vuejs.org/

Steps to reproduce

1.点击展示按钮,展示Comp组件内容

  1. 点击展示按钮, 删除Comp组件

3.GC回收,生成堆快照

  1. 重复以上操作,从堆快照筛选detached,对比堆快照

What is expected?

dom的增量为0

What is actually happening?

dom一直在增加,无法被回收


如若是原生dom的vif,则不存在该问题

@posva
Copy link
Member

posva commented Oct 26, 2021

Duplicate of #4829

@posva posva marked this as a duplicate of #4829 Oct 26, 2021
@posva posva closed this as completed Oct 26, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants