Skip to content

The pointer interaction shouldn’t synchronously dispatch an event on initial render #2160

Open
@mbostock

Description

@mbostock

The pointer interaction calls render(null) on the initial render, which I believe calls through to context.dispatchValue, resulting in a figure.dispatchEvent before the generated figure has even been returned. There’s no need to dispatch an event during the initial render, since it’s not possible for external listeners to be registered yet. Avoiding this call would address some compatibility issues in non-browser environments.

Ref. #2158 (reply in thread)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn’t working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions