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

[Bug Report]各组件存在大量内存泄漏 #2891

Closed
yangdan8 opened this issue Jan 23, 2018 · 4 comments
Closed

[Bug Report]各组件存在大量内存泄漏 #2891

yangdan8 opened this issue Jan 23, 2018 · 4 comments

Comments

@yangdan8
Copy link
Contributor

Environment

vue2.x

Reproduction link

https://github.com/iview/iview

Steps to reproduce

各组件内部$on之后在组件注销的时候并未$off

What is expected?

各组件内部$on之后在组件注销的时候需要$off

What is actually happening?

并未$off

@iview-bot iview-bot changed the title [Bug Report]各组件存在大量可能才内存泄漏 [Bug Report] components have a large number of possible memory leaks Jan 23, 2018
@iview-bot
Copy link
Collaborator

Translation of this issue:

Environment

Vue2.x

Reproduction link

https://github.com/iview/iview

Steps to reproduce

When the components are written off, the components are not $off after the internal $on

What is expected?

After the component $on is written off in the component, $off is required

What is actually happening?

No $off

@yangdan8 yangdan8 changed the title [Bug Report] components have a large number of possible memory leaks [Bug Report]各组件存在大量内存泄漏 Jan 23, 2018
@icarusion
Copy link
Contributor

你真的有测试过吗,有测试数据吗

@ckpiggy
Copy link

ckpiggy commented Jan 23, 2018

It is interesting that vue will remove all listener when $destroy.
And the document mentioned that

@tivonheng
Copy link

赞同,尤其是table组件,简直不能忍

@iview iview locked and limited conversation to collaborators Jan 25, 2019
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

5 participants