Skip to content

Revert "feat(core): add support for nested animations"#67632

Open
thePunderWoman wants to merge 1 commit intoangular:mainfrom
thePunderWoman:revert_66848
Open

Revert "feat(core): add support for nested animations"#67632
thePunderWoman wants to merge 1 commit intoangular:mainfrom
thePunderWoman:revert_66848

Conversation

@thePunderWoman
Copy link
Contributor

@thePunderWoman thePunderWoman commented Mar 11, 2026

This reverts commit ea2016a.

@thePunderWoman thePunderWoman added action: review The PR is still awaiting reviews from at least one requested reviewer area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release labels Mar 11, 2026
@ngbot ngbot bot added this to the Backlog milestone Mar 11, 2026
@thePunderWoman thePunderWoman requested a review from atscott March 11, 2026 22:29
Copy link
Contributor

@atscott atscott left a comment

Choose a reason for hiding this comment

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

Can we update the commit message to include either "fixes #67552" or some other description of why this is happening. I think the title should also be "fix: ..." so it shows up in changelog

This reverts commit ea2016a.

This reverts the support for nested animations due to the global scope of how nested animations were gathered.
This caused issues where on route navigations, all child nodes with animations would be queued and run before the navigation would occur.
We'll be revisiting the nested animations with a more tightened scope of when those leave animations will occur.

fixes: angular#67552
@atscott atscott added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 11, 2026
@thePunderWoman thePunderWoman added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Mar 12, 2026
@thePunderWoman
Copy link
Contributor Author

Caretaker note: the failing tests are previously failing and unrelated. This is safe to merge.

@mattlewis92
Copy link
Contributor

@thePunderWoman any chance that b4ec3cc could be reverted as well? (as it seems it was only added for this feature)

One of my coworkers noticed that fix breaks leave animations when artificially slowing them down for testing with chrome devtools (presumably as the animation duration is now much longer than is calculated with getComputedStyle, so the fallback timeout fires before the animation completes):
CleanShot 2026-03-12 at 11 39 49@2x

@thePunderWoman
Copy link
Contributor Author

@mattlewis92 We can consider that. We are planning on re-landing nested animations with a more strict scope fairly quickly. So we'll have to see if this fix still applies (it might).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants