-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Dispatch even if path has not changed & normalize Locations #1031
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
Conversation
+1 |
I'm going really fast through the issues right now, so I'm not sure if this is still a problem on master. The API and implementation is basically a rewrite for 1.0, can you verify on master if the problems that led to this PR are still an issue? After a pass or two of cleaning up the issues, I'll come back and try to understand this more. Thanks :) |
As far as I can tell, the issue of not re-rendering when transitioning to the previously rendered path is fixed, ie. there's no more The remaining issue is that So I think all that's left would be to make |
Seems good, should we close this and open a new issue/pr for that change? |
@taurose That makes sense. Would you be willing to create a new PR for that change? I'll let you close this if so, or just push it here. Up to you. |
What's left of it, yeah ;) |
This PR does two things:
For 1), I needed to update some tests to avoid recursion loops and adapt to the new behavior of causing more dispatches.
For 2), it would have also been possible to implement that in
Router.transitionTo/replaceWith
. I opted for changing the locations because the changes actually handle two different problems as outlined above. So it seems more logical to me to normalize them this way, instead of having the router work around those discrepancies.Notes:
Fixes #826 and #1027
Would be great if someone could look over this :)