Skip to content

Listeners shouldn’t capture references to their index and group? #189

@mbostock

Description

@mbostock

This won’t be backwards-compatible, and it would mean that the listener callback signature is different from the standard D3 pattern, but it would simplify things and fix a common memory leak as described in #186. If you need information based on the index and group, you could bake it into the data instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions