Skip to content

[Bug]: Navigate component navigates twice in a row in StrictMode #10217

@alex3d

Description

@alex3d

What version of React Router are you using?

6.9.0

Steps to Reproduce

Render <Navigate to={-1} /> in StrictMode.

Expected Behavior

Window navigated to previous location in the history stack.

Actual Behavior

Window navigated to second to previous location in the history stack.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions