Skip to content

docs(router): Deprecate writing to router.navigated property#48109

Closed
atscott wants to merge 1 commit intoangular:mainfrom
atscott:deprecateNavigatedWrites
Closed

docs(router): Deprecate writing to router.navigated property#48109
atscott wants to merge 1 commit intoangular:mainfrom
atscott:deprecateNavigatedWrites

Conversation

@atscott
Copy link
Copy Markdown
Contributor

@atscott atscott commented Nov 17, 2022

The router.navigated property is meant to be read-only externally. Writing to it is simply a workaround for APIs that had previously been missing in the Router

DEPRECATED:
The router.navigated property is meant to be read-only externally. Writing to it is simply a workaround for APIs that had previously been missing in the Router. To force reloads, pass onSameUrlNavigation: 'reload' in the options of Router.navigate.

@atscott atscott added state: blocked target: minor This PR is targeted for the next minor release labels Nov 17, 2022
@angular-robot angular-robot bot added detected: deprecation PR contains a commit with a deprecation area: docs labels Nov 17, 2022
@ngbot ngbot bot added this to the Backlog milestone Nov 17, 2022
@atscott atscott force-pushed the deprecateNavigatedWrites branch from 8973139 to e434038 Compare November 22, 2022 20:28
@atscott atscott marked this pull request as ready for review November 22, 2022 20:28
@atscott atscott force-pushed the deprecateNavigatedWrites branch from e434038 to 59f575f Compare November 22, 2022 20:53
The router.navigated property is meant to be read-only externally. Writing to it
is simply a workaround for APIs that had previously been missing in the Router

DEPRECATED:
The router.navigated property is meant to be read-only externally. Writing to it
is simply a workaround for APIs that had previously been missing in the Router.
To force reloads, pass `onSameUrlNavigation: 'reload'` in the options of
`Router.navigate`.
@atscott atscott force-pushed the deprecateNavigatedWrites branch from 59f575f to 1c198d4 Compare November 22, 2022 21:02
@pullapprove pullapprove bot requested a review from jessicajaniuk November 22, 2022 23:21
Copy link
Copy Markdown
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

@pullapprove pullapprove bot requested a review from alxhub November 23, 2022 03:05
Copy link
Copy Markdown
Contributor

@jessicajaniuk jessicajaniuk 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

@pkozlowski-opensource pkozlowski-opensource added the action: merge The PR is ready for merge by the caretaker label Nov 28, 2022
@atscott atscott removed the action: merge The PR is ready for merge by the caretaker label Nov 30, 2022
@bob-watson bob-watson 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 Dec 13, 2022
@atscott
Copy link
Copy Markdown
Contributor Author

atscott commented Dec 13, 2022

Closing for now. The @deprecated annotation appears on reads as well, which is less than ideal. I'll hold off on this one until there's a more compelling reason to deprecate it.

@atscott atscott closed this Dec 13, 2022
@angular-automatic-lock-bot
Copy link
Copy Markdown

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 Jan 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews detected: deprecation PR contains a commit with a deprecation target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants