-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
[Bug]: window.location is not equal to useLocation() with loader in react 17 #10446
Comments
Hi @brophdawg11 , I would like to work on this issue. It would be of great help if you could assign it . |
Issues don't get assigned on public projects unless only one person can solve it. @holynewbie already submitted a PR. |
I think we can go ahead and merge the linked PR, but want to document here just for clarity that apps should not be relying on |
This is fixed by #10448 but didn't quite get merged in time for the pending |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
What version of React Router are you using?
6.11.1
Steps to Reproduce
package.json
main.tsx
the result is wrong,
window.location
get older state。 But if I annotate theloader
, it turns right.Expected Behavior
window.location
has samepathname
、search
... withuseLocation
Actual Behavior
2023-05-04.14.50.39.mov
The text was updated successfully, but these errors were encountered: