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

fix(router): Do not clear currentNavigation if already set to next one #43852

Closed
wants to merge 1 commit into from

Conversation

atscott
Copy link
Contributor

@atscott atscott commented Oct 15, 2021

Experimentation with the Router URL management exposed a situation where
the currentNavigation was being cleared in the finalize after the
currentNavigation was already set to the next one.

This change ensures that the currentNavigation is only cleared if the
id of the finalized transition matches the one on the
currentNavigation object.

@atscott atscott added area: router target: patch This PR is targeted for the next patch release labels Oct 15, 2021
@ngbot ngbot bot modified the milestone: Backlog Oct 15, 2021
@google-cla google-cla bot added the cla: yes label Oct 15, 2021
Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Experimentation with the Router URL management exposed a situation where
the `currentNavigation` was being cleared in the `finalize` after the
`currentNavigation` was already set to the next one.

This change ensures that the `currentNavigation` is only cleared if the
id of the finalized transition matches the one on the
`currentNavigation` object.
@atscott
Copy link
Contributor Author

atscott commented Oct 15, 2021

presubmit

@atscott atscott added the action: merge The PR is ready for merge by the caretaker label Oct 15, 2021
@AndrewKushnir
Copy link
Contributor

This PR was merged into the repository by commit 32f368a.

AndrewKushnir pushed a commit that referenced this pull request Oct 18, 2021
#43852)

Experimentation with the Router URL management exposed a situation where
the `currentNavigation` was being cleared in the `finalize` after the
`currentNavigation` was already set to the next one.

This change ensures that the `currentNavigation` is only cleared if the
id of the finalized transition matches the one on the
`currentNavigation` object.

PR Close #43852
AndrewKushnir pushed a commit that referenced this pull request Oct 18, 2021
#43852)

Experimentation with the Router URL management exposed a situation where
the `currentNavigation` was being cleared in the `finalize` after the
`currentNavigation` was already set to the next one.

This change ensures that the `currentNavigation` is only cleared if the
id of the finalized transition matches the one on the
`currentNavigation` object.

PR Close #43852
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 18, 2021
Serginho pushed a commit to TuLotero/angular that referenced this pull request Jan 20, 2022
angular#43852)

Experimentation with the Router URL management exposed a situation where
the `currentNavigation` was being cleared in the `finalize` after the
`currentNavigation` was already set to the next one.

This change ensures that the `currentNavigation` is only cleared if the
id of the finalized transition matches the one on the
`currentNavigation` object.

PR Close angular#43852
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: router cla: yes target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants