-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
fix(core): fix #20582, don't need to wrap zone in location change listener #20640
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would much rather remove the reference to Zone 25e5b2f#diff-7f0963cbc503a361ded7d2bfec5f01b9R386 rather than trying to create a mock. Could we do that instead?
@mhevery , sure, I will try to rewrite it. |
@mhevery , I have checked the source, and I think because Please review. thank you. |
Any updates on this PR?? |
Hi @JiaLiPassion! This PR has merge conflicts due to recent upstream merges. |
1 similar comment
Hi @JiaLiPassion! This PR has merge conflicts due to recent upstream merges. |
@JiaLiPassion could you rebase this on master so that we can get this in. |
@mhevery , I have rebased the PR, please review, thank you! |
Greetings from your friendly neighborhood Angular caretaker, @jasonaden @JiaLiPassion, This is targeted to both Thanks, |
@alxhub , thank you for review, I am not sure how to do to split the PR to different branch, could you tell me more? |
@JiaLiPassion sure thing! When you create a branch locally, you typically start on |
I have changed the target to master only. @JiaLiPassion Please create an we PR and rebase it on top of |
…nge listener (angular#20640) PR Close angular#20640
…nge listener (angular#20640) PR Close angular#20640
…nge listener (angular#20640) PR Close angular#20640
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: 20582
What is the new behavior?
remove
Zone.current.wrap
inrouter.ts
whensetUpLocationChangeListener
, becausezone.js
already patchonPopState
, so location change listener will always run in ngZone.https://github.com/angular/angular/blob/master/packages/common/src/location/location.ts#L55
Does this PR introduce a breaking change?
Other information