Revert "feat(core): add support for nested animations"#67632
Revert "feat(core): add support for nested animations"#67632mattrbeck merged 1 commit intoangular:mainfrom
Conversation
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
056ab2f to
f03c6b1
Compare
|
Caretaker note: the failing tests are previously failing and unrelated. This is safe to merge. |
|
@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 |
|
@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). |
|
@mattlewis92 Looks like that fix will still be necessary. We could consider removing that fallback timer in devmode, but it would mean that the behavior would be different in dev vs prod, which isn't ideal. We could also consider maybe an injection token for debug purposes only and that would only work in devmode. What do you think? |
I think an injection token would be great - we have our own set of internal dev tools so we could easily toggle that on and off as needed when people need to debug animations in chrome dev tools |
|
@mattlewis92 Actually, I wonder if we can solve this by accounting for playback rate in the code that determines the longest animation length... |
|
@mattlewis92 I think #67656 should do it. Though it won't account for the case when we have to fallback to getComputedStyle... |
Unfortunately that doesn't seem to work,
Here was the AI answer I got when I asked about it: |
|
@mattlewis92 wonderful. OK, I'll look at the devmode only injection token, and we'll name it very clearly for what it's for. |
|
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. |


This reverts commit ea2016a.