Skip to content

refactor(core): improve animation instruction robustness and maintainability#63163

Closed
cexbrayat wants to merge 1 commit intoangular:mainfrom
cexbrayat:refactor/animations
Closed

refactor(core): improve animation instruction robustness and maintainability#63163
cexbrayat wants to merge 1 commit intoangular:mainfrom
cexbrayat:refactor/animations

Conversation

@cexbrayat
Copy link
Copy Markdown
Member

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Some early returns are missing in animation instructions, and some others can be moved earlier in the function to improve performance when animations are disabled.

What is the new behavior?

This commit extracts helper functions to reduce code duplication across animation instructions and adds early return when animations are disabled.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@pullapprove pullapprove bot requested a review from AndrewKushnir August 14, 2025 16:16
@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label Aug 14, 2025
@ngbot ngbot bot added this to the Backlog milestone Aug 14, 2025
Copy link
Copy Markdown
Contributor

@thePunderWoman thePunderWoman left a comment

Choose a reason for hiding this comment

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

Thanks for this cleanup. Other than the one change, I think this looks good.

…ability

This commit extracts helper functions to reduce code duplication across animation instructions and adds early return when animations are disabled.
@cexbrayat cexbrayat force-pushed the refactor/animations branch from 9fc9201 to 384c837 Compare August 18, 2025 09:22
Copy link
Copy Markdown
Contributor

@thePunderWoman thePunderWoman left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@thePunderWoman thePunderWoman added target: rc This PR is targeted for the next release-candidate action: merge The PR is ready for merge by the caretaker labels Aug 18, 2025
@thePunderWoman thePunderWoman removed the request for review from crisbeto August 18, 2025 09:41
@crisbeto
Copy link
Copy Markdown
Member

This PR was merged into the repository by commit e9b2fe7.

The changes were merged into the following branches: main, 20.2.x

@crisbeto crisbeto closed this in e9b2fe7 Aug 18, 2025
crisbeto pushed a commit that referenced this pull request Aug 18, 2025
…ability (#63163)

This commit extracts helper functions to reduce code duplication across animation instructions and adds early return when animations are disabled.

PR Close #63163
@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 Sep 18, 2025
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: core Issues related to the framework runtime target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants