Skip to content

Table 3.2.20 memery leak #8238

Open
Open
@imkoe

Description

@imkoe
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.20

Environment

vue:3.2.21

Reproduction link

https://github.com/anncwb/vue-vben-admin

Steps to reproduce

https://github.com/anncwb/vue-vben-admin
我使用了这个框架,这个框架默认使用了antdv3.2.17的版本。由于业务上一次查询会返回上千条数据,对应的我有很多个页面都是这种形式。
随后我发现,每次使用时对应的页面内存加载的数据并没有被释放,对应的到对应组件都不释放。
根据devtool的检查,和排除别的东西,我只在某个页面只保留了table组件的渲染和不保留table的组件渲染对比后发现,只要是携带了table组件的页面。对应的页面元素虽然是被销毁的,但是对应内存并没有释放。
随后我升级了4.0最新版本,对应内存泄漏是被未能重现的。
但是由于vue-vben-admin如果切换的话,对应我需要改动的东西太多了。

What is expected?

修复3.x table组件的内存泄漏问题

What is actually happening?

内存泄漏,对应关联的页面元素游离无法被gc

Image

Image

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