Skip to content

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

Description

@aaronyo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions