Skip to content

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented May 8, 2018

Avoids hitting the NgZone infinitely when using the autosize option. Moves some properties around and switches to only re-entering the zone when something changes.

Fixes #11215.

@crisbeto crisbeto requested a review from mmalerba as a code owner May 8, 2018 22:16
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 8, 2018
…tion

Avoids hitting the `NgZone` infinitely when using the `autosize` option.

Fixes angular#11215.
@crisbeto crisbeto force-pushed the 11215/sidenav-autosize branch from a23973f to ba0d0cd Compare May 8, 2018 22:16
@crisbeto crisbeto changed the title perf(sidenav): avoid hitting zone continuosly when using autosize option perf(sidenav): avoid hitting zone continuously when using autosize option May 8, 2018
@mmalerba mmalerba added pr: lgtm action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release and removed pr: needs review labels May 8, 2018
@ngbot
Copy link

ngbot bot commented May 8, 2018

I see that you just added the pr: merge ready label, but the following checks are still failing:
    failure status "continuous-integration/travis-ci/pr" is failing

If you want your PR to be merged, it has to pass all the CI checks.

If you can't get the PR to a green state due to flakes or broken master, please try rebasing to master and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help.

@jelbourn jelbourn merged commit c936bc9 into angular:master May 10, 2018
jelbourn pushed a commit to jelbourn/components that referenced this pull request May 14, 2018
…tion (angular#11231)

Avoids hitting the `NgZone` infinitely when using the `autosize` option.

Fixes angular#11215.
crisbeto added a commit to crisbeto/material2 that referenced this pull request Jul 4, 2018
Fixes the sidenav going into an infinite change detection loop when using the `autosize` option. Initially this was fixed in angular#11231, but it got reintroduced in angular#11986 where we started comparing `0` against `null` which always evaluates to true.

Fixes angular#11215.
crisbeto added a commit to crisbeto/material2 that referenced this pull request Jul 4, 2018
Fixes the sidenav going into an infinite change detection loop when using the `autosize` option. Initially this was fixed in angular#11231, but it got reintroduced in angular#11986 where we started comparing `0` against `null` which always evaluates to true.

Fixes angular#11215.
jelbourn pushed a commit that referenced this pull request Jul 11, 2018
Fixes the sidenav going into an infinite change detection loop when using the `autosize` option. Initially this was fixed in #11231, but it got reintroduced in #11986 where we started comparing `0` against `null` which always evaluates to true.

Fixes #11215.
jelbourn pushed a commit that referenced this pull request Jul 11, 2018
…12067)

Fixes the sidenav going into an infinite change detection loop when using the `autosize` option. Initially this was fixed in #11231, but it got reintroduced in #11986 where we started comparing `0` against `null` which always evaluates to true.

Fixes #11215.
victoriaaa234 pushed a commit that referenced this pull request Jul 25, 2018
…12067)

Fixes the sidenav going into an infinite change detection loop when using the `autosize` option. Initially this was fixed in #11231, but it got reintroduced in #11986 where we started comparing `0` against `null` which always evaluates to true.

Fixes #11215.
@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 Sep 8, 2019
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 cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MatSideNav autosize runs into ngZone 100% CPU
4 participants