Skip to content

Conversation

@atscott
Copy link
Contributor

@atscott atscott commented Nov 14, 2022

The router providers a configurable onSameUrlNavigation value that allows developers to configure whether navigations to the same URL as the current one should be processed or ignored. However, this only acts as a default value and there isn't an API for easily overriding this for a single navigation. Instead, developers are forced to update the value of the property on the router instance and remember to reset it.

This feature fills a small gap in the Router APIs that enables developers to accomplish the task of force reloading a bit easier.

Lengthy discussion about this here: #21115

@atscott atscott added feature Issue that requests a new feature target: minor This PR is targeted for the next minor release labels Nov 14, 2022
@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Nov 14, 2022
@ngbot ngbot bot added this to the Backlog milestone Nov 14, 2022
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.

Looks great 👍

@pkozlowski-opensource
Copy link
Member

@pkozlowski-opensource pkozlowski-opensource added the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Nov 16, 2022
@atscott atscott force-pushed the onSameUrlNavigationExtras branch 2 times, most recently from 4b98388 to 9f0246d Compare November 16, 2022 16:43
@atscott atscott removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Nov 16, 2022
@atscott atscott force-pushed the onSameUrlNavigationExtras branch from 9f0246d to 7186653 Compare November 17, 2022 18:55
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.

Reviewed-for: public-api, fw-router

@dylhunn dylhunn self-requested a review November 21, 2022 18:08
Copy link
Contributor

@dylhunn dylhunn left a comment

Choose a reason for hiding this comment

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

reviewed-for: public-api

@atscott atscott added action: merge The PR is ready for merge by the caretaker merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note labels Nov 21, 2022
@atscott
Copy link
Contributor Author

atscott commented Nov 22, 2022

merge assistance: pullapprove seems to be stuck

@dylhunn
Copy link
Contributor

dylhunn commented Nov 22, 2022

@atscott Would you be able to rebase this?

@dylhunn dylhunn removed the action: merge The PR is ready for merge by the caretaker label Nov 22, 2022
@dylhunn dylhunn added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note labels Nov 22, 2022
@atscott atscott force-pushed the onSameUrlNavigationExtras branch from 7186653 to d56c453 Compare November 22, 2022 20:11
@atscott atscott added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Nov 22, 2022
@dylhunn dylhunn added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: merge The PR is ready for merge by the caretaker labels Nov 23, 2022
@atscott atscott force-pushed the onSameUrlNavigationExtras branch from d56c453 to c942e69 Compare November 23, 2022 01:26
…er-navigation

The router providers a configurable `onSameUrlNavigation` value that
allows developers to configure whether navigations to the same URL as
the current one should be processed or ignored. However, this only acts
as a default value and there isn't an API for easily overriding this for
a single navigation. Instead, developers are forced to update the value
of the property on the router instance and remember to reset it.

This feature fills a small gap in the Router APIs that enables
developers to accomplish the task of force reloading a bit easier.

Lengthy discussion about this here: angular#21115
@atscott atscott force-pushed the onSameUrlNavigationExtras branch from c942e69 to 74b6631 Compare November 23, 2022 01:47
@atscott atscott added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Nov 23, 2022
@dylhunn
Copy link
Contributor

dylhunn commented Nov 23, 2022

This PR was merged into the repository by commit 332461b.

@dylhunn dylhunn closed this in 332461b Nov 23, 2022
@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 Dec 24, 2022
trekladyone pushed a commit to trekladyone/angular that referenced this pull request Feb 1, 2023
…er-navigation (angular#48050)

The router providers a configurable `onSameUrlNavigation` value that
allows developers to configure whether navigations to the same URL as
the current one should be processed or ignored. However, this only acts
as a default value and there isn't an API for easily overriding this for
a single navigation. Instead, developers are forced to update the value
of the property on the router instance and remember to reset it.

This feature fills a small gap in the Router APIs that enables
developers to accomplish the task of force reloading a bit easier.

Lengthy discussion about this here: angular#21115

PR Close angular#48050
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 detected: feature PR contains a feature commit feature Issue that requests a new feature target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants