Skip to content

Navigate replace without generate new location.key #968

@vanntrong

Description

@vanntrong

Hello, I used React and React router dom in my app, in some pages I used navigate function from useNavigate with replace, but when I use this it always generates a new key for the same URL. How can I avoid this behavior? I want to navigate but it doesn't generate a new location.key

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