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?
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?