Skip to content

Prevent re-render on in-route anchors #21

@peterapps

Description

@peterapps

If an anchor link is clicked in the table of contents but there is not any hash yet in location.href, React Router re-renders the page. This can be prevented using custom event handlers at the expense of interacting with history.pushState by circumventing React Router.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfunctionalityRelated to the website's functionality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions