Skip to content

fix(platform-browser): wait until animation completion before destroying renderer#50860

Closed
alan-agius4 wants to merge 2 commits intoangular:mainfrom
alan-agius4:wait-animation-remove-css
Closed

fix(platform-browser): wait until animation completion before destroying renderer#50860
alan-agius4 wants to merge 2 commits intoangular:mainfrom
alan-agius4:wait-animation-remove-css

Conversation

@alan-agius4
Copy link
Copy Markdown
Contributor

Prior to this commit, the renderer destroy method was being called before the animation complete. This is problematic when using REMOVE_STYLES_ON_COMPONENT_DESTROY as it causes the styles to be removed too early.

This commit, updates this destroy logic to be call the render destroy once the animations complete.

This has been reported internally in:

@pullapprove pullapprove bot requested a review from jessicajaniuk June 27, 2023 05:22
@alan-agius4 alan-agius4 requested review from AndrewKushnir and removed request for jessicajaniuk June 27, 2023 05:23
@alan-agius4 alan-agius4 added area: animations area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release action: presubmit The PR is in need of a google3 presubmit labels Jun 27, 2023
@ngbot ngbot bot added this to the Backlog milestone Jun 27, 2023
@alan-agius4
Copy link
Copy Markdown
Contributor Author

alan-agius4 commented Jun 27, 2023

Caretaker note: This is a resubmission of #50677 as it was reverted due to needing more coordination to sync in G3.

@alan-agius4 alan-agius4 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 Jun 27, 2023
@alan-agius4 alan-agius4 force-pushed the wait-animation-remove-css branch 2 times, most recently from 477a094 to 04d1fac Compare June 27, 2023 12:08
…ing renderer

Prior to this commit, the renderer destroy method was being called before the animation complete. This is problematic when using `REMOVE_STYLES_ON_COMPONENT_DESTROY` as it causes the styles to be removed too early.

This commit, updates this destroy logic to be call the render destroy once the animations complete.

This has been reported internally in:
- http://b/271251353#comment12
- http://b/282004950#comment5
This commit removes unnecessary castings.
@alan-agius4 alan-agius4 force-pushed the wait-animation-remove-css branch from 04d1fac to c53b9d8 Compare June 27, 2023 12:50
@AndrewKushnir AndrewKushnir added action: merge The PR is ready for merge by the caretaker and removed action: presubmit The PR is in need of a google3 presubmit labels Jun 27, 2023
@AndrewKushnir
Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit 29f6912.

AndrewKushnir pushed a commit that referenced this pull request Jun 27, 2023
…ing renderer (#50860)

Prior to this commit, the renderer destroy method was being called before the animation complete. This is problematic when using `REMOVE_STYLES_ON_COMPONENT_DESTROY` as it causes the styles to be removed too early.

This commit, updates this destroy logic to be call the render destroy once the animations complete.

This has been reported internally in:
- http://b/271251353#comment12
- http://b/282004950#comment5

PR Close #50860
AndrewKushnir pushed a commit that referenced this pull request Jun 27, 2023
This commit removes unnecessary castings.

PR Close #50860
AndrewKushnir pushed a commit that referenced this pull request Jun 27, 2023
This commit removes unnecessary castings.

PR Close #50860
@alan-agius4 alan-agius4 deleted the wait-animation-remove-css branch June 27, 2023 14:48
sunilbaba pushed a commit to sunilbaba/angular that referenced this pull request Jul 26, 2023
…ing renderer (angular#50860)

Prior to this commit, the renderer destroy method was being called before the animation complete. This is problematic when using `REMOVE_STYLES_ON_COMPONENT_DESTROY` as it causes the styles to be removed too early.

This commit, updates this destroy logic to be call the render destroy once the animations complete.

This has been reported internally in:
- http://b/271251353#comment12
- http://b/282004950#comment5

PR Close angular#50860
sunilbaba pushed a commit to sunilbaba/angular that referenced this pull request Jul 26, 2023
This commit removes unnecessary castings.

PR Close angular#50860
@angular-automatic-lock-bot
Copy link
Copy Markdown

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 Jul 28, 2023
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
…ing renderer (angular#50860)

Prior to this commit, the renderer destroy method was being called before the animation complete. This is problematic when using `REMOVE_STYLES_ON_COMPONENT_DESTROY` as it causes the styles to be removed too early.

This commit, updates this destroy logic to be call the render destroy once the animations complete.

This has been reported internally in:
- http://b/271251353#comment12
- http://b/282004950#comment5

PR Close angular#50860
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
This commit removes unnecessary castings.

PR Close angular#50860
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: animations 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 PullApprove: disable target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants