Skip to content

refactor(core): manual tick when one is scheduled switches to micro… #56930

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

atscott
Copy link
Contributor

@atscott atscott commented Jul 10, 2024

…task scheduler

This commit updates the logic that switches the zoneless scheduler to a microtask scheduler from applying only when the scheduler runs to also when a change detection was scheduled but gets pre-empted by another call to tick. This can happen in tests that manually trigger detectChanges on the fixture, but there's also nothing stopping production code from calling appRef.tick either.

…task scheduler

This commit updates the logic that switches the zoneless scheduler to a
microtask scheduler from applying only when the scheduler runs to also
when a change detection was scheduled but gets pre-empted by another
call to `tick`. This can happen in tests that manually trigger
`detectChanges` on the fixture, but there's also nothing stopping
production code from calling `appRef.tick` either.
@atscott atscott added target: patch This PR is targeted for the next patch release action: global presubmit The PR is in need of a google3 global presubmit labels Jul 10, 2024
@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label Jul 10, 2024
@ngbot ngbot bot added this to the Backlog milestone Jul 10, 2024
@atscott atscott requested a review from alxhub July 10, 2024 15:38
@atscott atscott marked this pull request as draft July 29, 2024 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: global presubmit The PR is in need of a google3 global presubmit area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant