Skip to content

Link component throws errors in latest rc #1655

Closed

Description

@vxsx

function navigate(history: HistoryService, event) {
if (
!event.defaultPrevented && // onClick prevented default
event.button === 0 && // ignore everything but left clicks
!isModifiedEvent(event) // ignore clicks with modifier keys
) {
event.preventDefault();
history.replace(this.props.to);
}
}

here on line 70 this.props throws an error, cause this is no longer a class component

Activity

  1. added a commit that references this issue on Dec 5, 2021
    63ead20
  2. added a commit that references this issue on Oct 6, 2025
    3df72fb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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