Skip to content

stop ngDoCheck() occuring for detached nodes#9351

Closed
timruffles wants to merge 1 commit into
angular:masterfrom
timruffles:master
Closed

stop ngDoCheck() occuring for detached nodes#9351
timruffles wants to merge 1 commit into
angular:masterfrom
timruffles:master

Conversation

@timruffles

Copy link
Copy Markdown
Contributor

Relating to #7055 #7054

What kind of change does this PR introduce? (check one with "x")

[ x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior? (You can also link to an open issue here)

ngDoCheck, ngAfterViewChecked are called even when no checking has taken place, due to the change detector being detached.

What is the new behavior?

They are not called at the wrong time.

Does this PR introduce a breaking change? (check one with "x")

[x] Yes
[ ] No

Not sure yet!

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

NOTE - this needs tests, and isn't for merging yet

  • with detached change detector no checking occurs,
    yet the lifecycle hooks fire

NOTE - this needs tests, and isn't for merging yet

- with detached change detector no checking occurs,
  yet the lifecycle hooks fire
@timruffles

Copy link
Copy Markdown
Contributor Author

Closed - didn't see #9317 does this, and has tests already.

@timruffles timruffles closed this Jun 19, 2016
@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 Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants