Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace state on repeated Link navigations #7864

Merged
merged 4 commits into from Aug 27, 2021
Merged

Conversation

guidobouman
Copy link
Contributor

@guidobouman guidobouman commented Jun 5, 2021

Back ported this fix from v6 to v5: https://github.com/ReactTraining/react-router/blob/dev/packages/react-router-dom/index.tsx#L186-L189

To check:

  • Should the normalised location from the scope above (line 93) not be used?

Fixes: #5362

@guidobouman
Copy link
Contributor Author

Took me only two years to fix this personal TODO in ReactRouter, but I finally did it. =]

@guidobouman
Copy link
Contributor Author

@mjackson ?

@mjackson
Copy link
Member

Looks good to me, thanks @guidobouman. @chaance can we get this merged and released into the next 5.x release?

@chaance chaance merged commit 80b6ffa into remix-run:main Aug 27, 2021
@vladshcherbin
Copy link
Contributor

@guidobouman holy shit man, you did it! 🕺 4+ years tracking related issues and PRs and it's finally fixed 🎉 🥳 🍾

@guidobouman
Copy link
Contributor Author

Oh my god @vladshcherbin, we did it! 🥲

@guidobouman guidobouman deleted the patch-1 branch September 9, 2021 17:14
@chaance
Copy link
Collaborator

chaance commented Sep 9, 2021

Kamala Harris smiling on the phone, caption: "We did it. We did it, Joe."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use replace instead of push on <Link> click when location is the same
4 participants