hyperhype/hyperscript

Must manually call cleanup or elements with event handlers will leak

aaronyo opened this issue · 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?