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

fix(multiple): move afterRender calls back outside zone #28981

Closed
wants to merge 1 commit into from

Conversation

mmalerba
Copy link
Contributor

Updates some calls to afterRender / afterNextRender to explicitly run outside the NgZone. These usages were originally explcitily run outside, but the explicit call was removed when they were updated to use the afterRender / afterNextRender function, since at the time it was automatically outside the zone. The semantics of afterRender / afterNextRendef have since changed so this is no longer true. Therefore this PR restores the original explicit run outside.

Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I think we can remove the runOutsideAngular call from drag.ts.

src/cdk/drag-drop/directives/drag.ts Outdated Show resolved Hide resolved
Updates some calls to afterRender / afterNextRender to explicitly run
outside the NgZone. These usages were originally explcitily run outside,
but the explicit call was removed when they were updated to use the
afterRender / afterNextRender function, since at the time it was
automatically outside the zone. The semantics of afterRender /
afterNextRendef have since changed so this is no longer true. Therefore
this PR restores the original explicit run outside.
@mmalerba mmalerba added the blocked This issue is blocked by some external factor, such as a prerequisite PR label May 1, 2024
@mmalerba
Copy link
Contributor Author

mmalerba commented May 1, 2024

There are plans in the works to put afterNextRender back outside the zone, so this may wind up not being needed

@devversion devversion removed their request for review May 2, 2024 10:19
@mmalerba mmalerba closed this May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked This issue is blocked by some external factor, such as a prerequisite PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants