Skip to content

fix(upgrade): Make zoneless work with hybrid apps - #61660

Closed
atscott wants to merge 3 commits into
angular:mainfrom
atscott:upgradestaticzoneless
Closed

atscott wants to merge 3 commits into
angular:mainfrom
atscott:upgradestaticzoneless

Conversation

@atscott

@atscott atscott commented May 23, 2025

Copy link
Copy Markdown
Contributor

Hybrid applications trigger a digest when onMicrotaskEmpty emits so that the AngularJS app can run its lifecycle when the Angular app does. For ZoneJS applications, this is effectively after every render/app tick. This change updates the code to use afterEveryRender instead.

fixes #61640

Hybrid applications trigger a digest when `onMicrotaskEmpty` emits so
that the AngularJS app can run its lifecycle when the Angular app does. For
ZoneJS applications, this is effectively after every render/app tick. This change
updates the code to use `afterEveryRender` instead.

fixes angular#61640
@angular-robot angular-robot Bot added the area: upgrade Issues related to AngularJS → Angular upgrade APIs label May 23, 2025
@ngbot ngbot Bot added this to the Backlog milestone May 23, 2025
@atscott atscott added the target: rc This PR is targeted for the next release-candidate label May 23, 2025
@Santosh-onshape

Copy link
Copy Markdown

Thanks @atscott for the fix hopefully this gets approved fast :)

@atscott
atscott force-pushed the upgradestaticzoneless branch from 769b61b to b388b02 Compare May 27, 2025 22:22
@AndrewKushnir AndrewKushnir added target: patch This PR is targeted for the next patch release and removed target: rc This PR is targeted for the next release-candidate labels May 28, 2025
@atscott
atscott force-pushed the upgradestaticzoneless branch 4 times, most recently from 5202a76 to 9dd74f4 Compare June 2, 2025 19:00
@atscott
atscott marked this pull request as ready for review June 2, 2025 19:01
@Santosh-onshape

Copy link
Copy Markdown

@alxhub looks like review is ready, sorry tagging here to get attention.

@atscott
atscott force-pushed the upgradestaticzoneless branch from 9dd74f4 to b990029 Compare June 18, 2025 16:27
@atscott
atscott force-pushed the upgradestaticzoneless branch from b990029 to 2513055 Compare June 18, 2025 16:28
@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 Jun 18, 2025
@atscott

atscott commented Jun 18, 2025

Copy link
Copy Markdown
Contributor Author

caretaker note: Please review this PR and merge

@crisbeto

Copy link
Copy Markdown
Member

This PR was merged into the repository by commit 900cd37.

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

@crisbeto crisbeto closed this in 900cd37 Jun 19, 2025
crisbeto pushed a commit that referenced this pull request Jun 19, 2025
Hybrid applications trigger a digest when `onMicrotaskEmpty` emits so
that the AngularJS app can run its lifecycle when the Angular app does. For
ZoneJS applications, this is effectively after every render/app tick. This change
updates the code to use `afterEveryRender` instead.

fixes #61640

PR Close #61660
@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 20, 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: upgrade Issues related to AngularJS → Angular upgrade APIs merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

zoneless + hybrid setup (angular 19 + AngularJs 1.8) doesn't trigger change detection

4 participants