Skip to content

Conversation

atscott
Copy link
Contributor

@atscott atscott commented Dec 27, 2023

draft - Probably a breaking change and definitely not a good idea until afterNextRender runs only after ApplicationRef.tick. At the moment, this passes tests only because they're using fixtures and the fixtures are directly triggering change detection. However, in an application, the app component will refresh and trigger afterNextRender before the overlay views are refreshed.

@atscott atscott force-pushed the afterNextRenderOverlayRef branch from 51b8b1b to 017331a Compare January 4, 2024 23:39
@atscott atscott added the blocked This issue is blocked by some external factor, such as a prerequisite PR label Jan 4, 2024
@atscott
Copy link
Contributor Author

atscott commented Jan 4, 2024

blocked by angular/angular#52455

@atsjo
Copy link

atsjo commented Jan 20, 2024

eagerly awaiting this now that the blocker is resolved, will it also fix the tooltip positioning in zoneless?

@atscott
Copy link
Contributor Author

atscott commented Jan 20, 2024

eagerly awaiting this now that the blocker is resolved, will it also fix the tooltip positioning in zoneless

yes, this would fix the tooltip positioning in Zoneless. Note that the focus right now is finalizing the Zoneless implementation. There’s still plenty of work that needs to be done there before downstream fixes like this start to get more dedicated time and attention.

@atscott atscott force-pushed the afterNextRenderOverlayRef branch from 017331a to 36d9780 Compare February 2, 2024 23:16
@atscott atscott marked this pull request as ready for review March 6, 2024 23:58
@atscott atscott force-pushed the afterNextRenderOverlayRef branch from 36d9780 to 29652fa Compare March 6, 2024 23:59
@mmalerba mmalerba removed the blocked This issue is blocked by some external factor, such as a prerequisite PR label Mar 7, 2024
atscott and others added 2 commits March 8, 2024 20:51
This updates the overlay implementation to use `afterNextRender` instead
of `ngZone.onStable` which does not emit at all in zoneless
applications. For zone-based applications, this means that the overlay
will be positioned immediately after the next ApplicationRef tick. This is slightly
different from `onStable`, which with ZoneJS can span multiple change
detection rounds.
@mmalerba mmalerba force-pushed the afterNextRenderOverlayRef branch from 4abdc4c to 8cda325 Compare March 8, 2024 20:52
@mmalerba mmalerba added the action: merge The PR is ready for merge by the caretaker label Mar 8, 2024
@mmalerba mmalerba removed the request for review from jelbourn March 8, 2024 20:53
@mmalerba mmalerba added the target: major This PR is targeted for the next major release label Mar 8, 2024
@mmalerba mmalerba merged commit 7ec1e48 into angular:main Mar 8, 2024
@angular-automatic-lock-bot
Copy link

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 Apr 8, 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: cdk/overlay target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants