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): children of routes with loadComponent should not inherit… #52114

Closed
wants to merge 1 commit into from

Conversation

atscott
Copy link
Contributor

@atscott atscott commented Oct 9, 2023

… parent data by default

When a route has loadComponent, its children should not inherit params and data unless paramsInheritanceStrategy is 'always'.

fixes #52106

BREAKING CHANGE: Routes with loadComponent would incorrectly cause child routes to inherit their data by default. The default paramsInheritanceStrategy is emptyOnly. If parent data should be inherited in child routes, this should be manually set to always.

… parent data by default

When a route has loadComponent, its children should not inherit params and
data unless paramsInheritanceStrategy is 'always'.

fixes angular#52106

BREAKING CHANGE: Routes with `loadComponent` would incorrectly cause
child routes to inherit their data by default. The default
`paramsInheritanceStrategy` is `emptyOnly`. If parent data should be
inherited in child routes, this should be manually set to `always`.
@atscott atscott added target: major This PR is targeted for the next major release action: global presubmit The PR is in need of a google3 global presubmit labels Oct 9, 2023
@angular-robot angular-robot bot added the detected: breaking change PR contains a commit with a breaking change label Oct 9, 2023
@atscott atscott added this to the v17-candidates milestone Oct 9, 2023
@ngbot ngbot bot removed this from the v17-candidates milestone Oct 9, 2023
@atscott
Copy link
Contributor Author

atscott commented Oct 9, 2023

TGP has one failure but looks unrelated

@atscott atscott added the action: merge The PR is ready for merge by the caretaker label Oct 10, 2023
@angular-robot
Copy link
Contributor

angular-robot bot commented Oct 10, 2023

This PR was merged into the repository by commit 37df395.

@angular-robot angular-robot bot closed this in 37df395 Oct 10, 2023
@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 11, 2023
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
… parent data by default (angular#52114)

When a route has loadComponent, its children should not inherit params and
data unless paramsInheritanceStrategy is 'always'.

fixes angular#52106

BREAKING CHANGE: Routes with `loadComponent` would incorrectly cause
child routes to inherit their data by default. The default
`paramsInheritanceStrategy` is `emptyOnly`. If parent data should be
inherited in child routes, this should be manually set to `always`.

PR Close angular#52114
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: global presubmit The PR is in need of a google3 global presubmit action: merge The PR is ready for merge by the caretaker detected: breaking change PR contains a commit with a breaking change target: major This PR is targeted for the next major release
Projects
None yet
2 participants