Skip to content

bug of Vnode memory leak #12081

Closed
Closed
@weidehai

Description

@weidehai

Version

2.6.11

Reproduction link

https://codepen.io/weidehai/pen/mdWradp

Steps to reproduce

使用chrome的内存分析工具,对比隐藏前后的内存

What is expected?

无论是子组件调用隐藏还是父组件调用隐藏都应该回收helloworld组件的vnode

What is actually happening?

只有父组件调用隐藏才回收


如果修改子组件内button的click事件为@click.once,那么无论是子组件调用隐藏还是父组件调用隐藏都会回收helloworld组件的vnode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions