remix-run / history

Manage session history with JavaScript
MIT License
8.29k stars 961 forks source link

Navigate replace without generate new location.key #968

Open vanntrong opened 1 year ago

vanntrong commented 1 year ago

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