Skip to content
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

refactor(core): Ensure animations are flushed before running render hooks #55564

Closed
wants to merge 1 commit into from

Conversation

atscott
Copy link
Contributor

@atscott atscott commented Apr 26, 2024

This commit ensures we flush animations by calling renderFactory
begin/end in cases where the ApplicationRef._tick happens in a mode that
skips straight to the render hooks.

Reviewer note: This is a partial roll-forward of 964074a. It doesn't solve the problem of unflushed animations when there are no more views but does simplify the scheduler notification WRT animations (there's no special notification in the animation code now).

@atscott atscott added the requires: TGP This PR requires a passing TGP before merging is allowed label Apr 26, 2024
@atscott atscott added the area: core Issues related to the framework runtime label Apr 26, 2024
@pullapprove pullapprove bot removed area: core Issues related to the framework runtime requires: TGP This PR requires a passing TGP before merging is allowed labels Apr 26, 2024
@atscott atscott added area: core Issues related to the framework runtime target: rc This PR is targeted for the next release-candidate requires: TGP This PR requires a passing TGP before merging is allowed labels Apr 26, 2024
@pullapprove pullapprove bot removed target: rc This PR is targeted for the next release-candidate requires: TGP This PR requires a passing TGP before merging is allowed labels Apr 26, 2024
@ngbot ngbot bot modified the milestone: Backlog Apr 26, 2024
@atscott atscott force-pushed the unrevert branch 2 times, most recently from bb4fbc7 to 96b9ea5 Compare April 26, 2024 19:45
@atscott atscott added the requires: TGP This PR requires a passing TGP before merging is allowed label Apr 26, 2024
@pullapprove pullapprove bot removed the requires: TGP This PR requires a passing TGP before merging is allowed label Apr 26, 2024
@atscott atscott force-pushed the unrevert branch 2 times, most recently from 2561855 to cf9545e Compare April 26, 2024 21:36
@atscott atscott changed the title Reapply "refactor(core): Ensure DOM removal happens when no app views… refactor(core): Ensure animations are flushed before running render hooks Apr 26, 2024
@atscott atscott force-pushed the unrevert branch 3 times, most recently from be29d6b to 12c1877 Compare April 26, 2024 21:56
@atscott atscott added action: merge The PR is ready for merge by the caretaker merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note labels Apr 29, 2024
@JeanMeche JeanMeche added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: merge The PR is ready for merge by the caretaker labels Apr 29, 2024
@AndrewKushnir
Copy link
Contributor

@atscott FYI, this PR has conflicts with the main branch (likely due to the Prettier formatting change that happened for the core package). Could you please rebase and resolve the conflicts when you get a chance? Thank you.

…ooks

This commit ensures we flush animations by calling renderFactory
begin/end in cases where the ApplicationRef._tick happens in a mode that
skips straight to the render hooks.
@atscott atscott added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Apr 30, 2024
@AndrewKushnir AndrewKushnir added the target: rc This PR is targeted for the next release-candidate label Apr 30, 2024
@AndrewKushnir
Copy link
Contributor

This PR was merged into the repository by commit 024e9bf.

AndrewKushnir pushed a commit that referenced this pull request Apr 30, 2024
…ooks (#55564)

This commit ensures we flush animations by calling renderFactory
begin/end in cases where the ApplicationRef._tick happens in a mode that
skips straight to the render hooks.

PR Close #55564
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker 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 target: rc This PR is targeted for the next release-candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants