hyperscript icon indicating copy to clipboard operation
hyperscript copied to clipboard

Must manually call cleanup or elements with event handlers will leak

Open aaronyo opened this issue 4 years ago • 0 comments

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?

aaronyo avatar Aug 27 '21 10:08 aaronyo