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): fix Router's public API for canceledNavigationResolution #43842
Conversation
The commit which made the `canceledNavigationResolution` property on the `Router` public did not add the corresponding configuration in the `ExtraOptions`. angular@3c6b653 This was a mistake and is being corrected in this commit. We should not encourage changing the properties post-setup (i.e. `inject(Router).canceledNavigationResolution = 'computed'`). This manner of configuration makes the options non-tree shakeable because we have to keep both implementations in case the value changes at runtime.
Reviewed-for: public-api
Quick comment: while this change updates public API surface, it does it in a non-breaking way. This is clearly a fix for the API to add a capability to provide canceledNavigationResolution config option, which was missing during the initial implementation of the feature.
|
This PR was merged into the repository by commit e79e3ca. |
…#43842) The commit which made the `canceledNavigationResolution` property on the `Router` public did not add the corresponding configuration in the `ExtraOptions`. 3c6b653 This was a mistake and is being corrected in this commit. We should not encourage changing the properties post-setup (i.e. `inject(Router).canceledNavigationResolution = 'computed'`). This manner of configuration makes the options non-tree shakeable because we have to keep both implementations in case the value changes at runtime. PR Close #43842
|
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. |


The commit which made the
canceledNavigationResolutionproperty on theRouterpublic did not add the corresponding configuration in the
ExtraOptions.3c6b653
This was a mistake and is being corrected in this commit. We should not
encourage changing the properties post-setup (i.e.
inject(Router).canceledNavigationResolution = 'computed'). This mannerof configuration makes the options non-tree shakeable because we have to
keep both implementations in case the value changes at runtime.
The text was updated successfully, but these errors were encountered: