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

Must manually call cleanup or elements with event handlers will leak #99

Open
aaronyo opened this issue Aug 27, 2021 · 0 comments
Open

Comments

@aaronyo
Copy link

aaronyo commented Aug 27, 2021

Looks like any element created with an event handler in its props is not going to get gc'd unless you manually call "cleanup." The "cleanupFuncs" array has references in the closures it holds.

This was surprising. Does anyone think this feature is worth it -- having to manually cleanup any dom node with an event handler?

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

No branches or pull requests

1 participant