Skip to content

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

Closed
alan-agius4 wants to merge 0 commit intoangular:mainfrom
alan-agius4:wait-animation-remove-css
Closed

fix(platform-browser): wait until animation completion before destroying renderer#50677
alan-agius4 wants to merge 0 commit 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:

@alan-agius4 alan-agius4 added area: animations target: patch This PR is targeted for the next patch release labels Jun 12, 2023
@ngbot ngbot bot modified the milestone: Backlog Jun 12, 2023
@alan-agius4 alan-agius4 force-pushed the wait-animation-remove-css branch 2 times, most recently from 233f2f5 to 979c7a1 Compare June 12, 2023 13:34
@alan-agius4 alan-agius4 added the action: global presubmit The PR is in need of a google3 global presubmit label Jun 12, 2023
@alan-agius4
Copy link
Copy Markdown
Contributor Author

alan-agius4 commented Jun 12, 2023

@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jun 12, 2023
@alan-agius4 alan-agius4 marked this pull request as ready for review June 12, 2023 15:32
@pullapprove pullapprove bot requested a review from alxhub June 12, 2023 15:33
@alxhub alxhub requested a review from jessicajaniuk June 12, 2023 15:46
Copy link
Copy Markdown
Contributor

@jessicajaniuk jessicajaniuk left a comment

Choose a reason for hiding this comment

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

LGTM! This looks much cleaner than what was there before.

@alan-agius4 alan-agius4 removed the request for review from alxhub June 12, 2023 15:53
@alan-agius4
Copy link
Copy Markdown
Contributor Author

Caretaker note: this change required a bulk screenshots update in G3 as this causes some diffs. This fixes a real bug as some content in the reference images is unstyled but is now correctly styled.

A CLI that requires global approval is needed, please see discussion in https://angular-team.slack.com/archives/G011LHKQM1Q/p1686585245856779.

@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: global presubmit The PR is in need of a google3 global presubmit labels Jun 14, 2023
@alan-agius4 alan-agius4 linked an issue Jun 21, 2023 that may be closed by this pull request
@AndrewKushnir
Copy link
Copy Markdown
Contributor

FYI, adding the "blocked" label for now, since landing this PR needs coordination. We plan to land it on Monday (06/26).

@AndrewKushnir AndrewKushnir added the action: global presubmit The PR is in need of a google3 global presubmit label Jun 23, 2023
@alan-agius4 alan-agius4 removed state: blocked action: global presubmit The PR is in need of a google3 global presubmit labels Jun 26, 2023
@alan-agius4
Copy link
Copy Markdown
Contributor Author

Caretaker note:

  • TGP
  • CL for screenshot updates (For some reason, around 8 screenshots failed due to permissions (Waymo)).

@AndrewKushnir
Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit d227347.

AndrewKushnir pushed a commit that referenced this pull request Jun 26, 2023
This commit removes unnecessary castings.

PR Close #50677
AndrewKushnir pushed a commit that referenced this pull request Jun 26, 2023
…ing renderer (#50677)

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 #50677
AndrewKushnir pushed a commit that referenced this pull request Jun 26, 2023
This commit removes unnecessary castings.

PR Close #50677
AndrewKushnir added a commit to AndrewKushnir/angular that referenced this pull request Jun 26, 2023
AndrewKushnir added a commit to AndrewKushnir/angular that referenced this pull request Jun 26, 2023
AndrewKushnir added a commit that referenced this pull request Jun 26, 2023
AndrewKushnir added a commit that referenced this pull request Jun 26, 2023
AndrewKushnir added a commit that referenced this pull request Jun 26, 2023
AndrewKushnir added a commit that referenced this pull request Jun 26, 2023
@AndrewKushnir AndrewKushnir reopened this Jun 26, 2023
@alan-agius4 alan-agius4 added action: global presubmit The PR is in need of a google3 global presubmit and removed docsarea: global labels Jun 26, 2023
@AndrewKushnir AndrewKushnir force-pushed the wait-animation-remove-css branch from 979c7a1 to 39935ee Compare June 27, 2023 01:51
sunilbaba pushed a commit to sunilbaba/angular that referenced this pull request Jul 26, 2023
…ing renderer (angular#50677)

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#50677
sunilbaba pushed a commit to sunilbaba/angular that referenced this pull request Jul 26, 2023
This commit removes unnecessary castings.

PR Close angular#50677
sunilbaba pushed a commit to sunilbaba/angular that referenced this pull request Jul 26, 2023
sunilbaba pushed a commit to sunilbaba/angular that referenced this pull request Jul 26, 2023
@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#50677)

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#50677
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
This commit removes unnecessary castings.

PR Close angular#50677
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 area: animations merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note state: blocked target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

REMOVE_STYLES_ON_COMPONENT_DESTROY breaks :leave animations

4 participants