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

vue instance manually destroy #697

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Hironari-Saito
Copy link

Please see #696

@jerosoler
Copy link
Owner

I see that there would still be a memory leak when removing a node, since it would not be destroyed.

Is it possible to put in the unmount of the component the destruction of the instance?

@jerosoler jerosoler added the Vue label May 23, 2023
@Hironari-Saito
Copy link
Author

Hi! @jerosoler
Thank you for your reply!
Your observation is correct.

Not only the clear function, but also the removeNodeId function needs to be individually destroyed.
Please wait a moment while I fix the code.

@Hironari-Saito
Copy link
Author

I have made some modifications to the code. Please review it!

I have added and tested scenarios for the memory leak in removeNodeId in the PoC repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants