-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Ensure animations are flushed when ApplicationRef.tick happens #55132
Conversation
d3bbeee
to
70aae48
Compare
packages/animations/browser/src/render/transition_animation_engine.ts
Outdated
Show resolved
Hide resolved
packages/platform-browser/animations/async/src/async_animation_renderer.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change for async animations lgtm.
ae49578
to
b4036d9
Compare
b4036d9
to
1a5e4e1
Compare
50579e0
to
1d6c438
Compare
1d6c438
to
2f05242
Compare
…resh This change ensures that `ApplicationRef.tick` flushes animations by calling `rendererFactory2.end`. This might not have happened before if there were no views that needed to be refreshed. This is also likely to fix a potential regression caused by angular#53718 even in zone apps where animations don't get flushed when no views attached to ApplicationRef are dirty.
2f05242
to
d215fb0
Compare
merge assistance: Please help get this green and/or merge with pending reviews |
d215fb0
to
a354e71
Compare
…aded in zoneless Async animations currently works in Zones because the render factory promise resolve causes change detection to happen. fixes angular#54919
a354e71
to
f8fbeba
Compare
This PR was merged into the repository by commit 9ab36cf. |
… when loaded in zoneless (angular#55132)" This reverts commit 9ab36cf.
…need refresh (angular#55132)" This reverts commit a07ea06.
… when loaded in zoneless (angular#55132)" This reverts commit 9ab36cf.
…need refresh (angular#55132)" This reverts commit a07ea06.
… need refresh (angular#55132)" (angular#55524) This reverts commit e3d5607.
…resh (angular#55132) This reverts commit e3d5607 - reapplies original changes.
…resh (angular#55132) This reverts commit e3d5607 - reapplies original changes.
…resh (angular#55132) This reverts commit e3d5607 - reapplies original changes.
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. |
Commit 1
fix(core): Ensure DOM removal happens when no app views need refresh
This change ensures that
ApplicationRef.tick
flushes animations bycalling
rendererFactory2.end
. This might not have happened before ifthere were no views that needed to be refreshed.
This is also likely to fix a potential regression caused by #53718 even
in zone apps where animations don't get flushed when no views attached
to ApplicationRef are dirty.
Commit 2
fix(animations): Ensure async animations applies changes when loaded in zoneless
Async animations currently works in Zones because the render factory
promise resolve causes change detection to happen.
fixes #54919