Skip to content

ReactTestUtils.Simulate logs unexpected console error #6379

@harboecp

Description

@harboecp

To reproduce, open http://jsfiddle.net/0jjnaghw/
Error is logged to browser dev tools (in Chrome & Firefox, somehow not in Safari).

Happens on v15.0.0-rc.2 and on latest master version.

The assignment of additional event data to the newly created SyntheticEvent triggers a console error:

assign(event, eventData);

"Warning: This synthetic event is reused for performance reasons."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions