Skip to content

Prevent re-render on in-route anchors #21

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.

Activity

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

    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