Skip to content

Prevent running change detection twice with run coalescing and zoneless - #55352

Closed
atscott wants to merge 1 commit into
angular:mainfrom
atscott:doubleTickWithCoalescing
Closed

atscott wants to merge 1 commit into
angular:mainfrom
atscott:doubleTickWithCoalescing

Conversation

@atscott

@atscott atscott commented Apr 15, 2024 •

Copy link
Copy Markdown
Contributor

This commit ensures we correctly handle the exit from the zone.run in
the zoneless scheduler. Run coalescing would delay the onMicrotaskEmpty event
until after we have exited the change detection triggered by the
zoneless scheduler and mean that the subscription cannot determine if
ApplicationRef.tick should be skipped.

@atscott
atscott force-pushed the doubleTickWithCoalescing branch 4 times, most recently from 13a98fa to bd7b933 Compare April 15, 2024 20:48
@pkozlowski-opensource pkozlowski-opensource added the area: core Issues related to the framework runtime label Apr 16, 2024
@ngbot ngbot Bot added this to the Backlog milestone Apr 16, 2024
@atscott
atscott force-pushed the doubleTickWithCoalescing branch 3 times, most recently from 848a24e to 9a8cbf5 Compare April 16, 2024 20:00
@atscott
atscott force-pushed the doubleTickWithCoalescing branch from 9a8cbf5 to 4080d18 Compare April 16, 2024 22:45
@atscott
atscott requested a review from alxhub April 17, 2024 18:48
@atscott atscott added the target: minor This PR is targeted for the next minor release label Apr 17, 2024
@atscott
atscott force-pushed the doubleTickWithCoalescing branch from 4080d18 to 35e4d73 Compare April 17, 2024 18:53
…scing and zoneless

This commit ensures we correctly handle the exit from the zone.run in
the zoneless scheduler. Run coalescing would delay the `onMicrotaskEmpty` event
until after we have exited the change detection triggered by the
zoneless scheduler and mean that the subscription cannot determine if
`ApplicationRef.tick` should be skipped.
@atscott
atscott force-pushed the doubleTickWithCoalescing branch from 35e4d73 to 129d4bd Compare April 17, 2024 18:54
@atscott atscott added the action: merge The PR is ready for merge by the caretaker label Apr 17, 2024
@alxhub

alxhub commented Apr 17, 2024

Copy link
Copy Markdown
Member

This PR was merged into the repository by commit 18a43b5.

@alxhub alxhub closed this in 18a43b5 Apr 17, 2024
@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 May 18, 2024
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: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants