Skip to content

feat(ivy): support markForCheck - #22690

Closed
kara wants to merge 3 commits into
angular:masterfrom
kara:markForCheck
Closed

kara wants to merge 3 commits into
angular:masterfrom
kara:markForCheck

Conversation

@kara

@kara kara commented Mar 9, 2018 •

Copy link
Copy Markdown
Contributor

This PR adds support for ChangeDetectorRef.markForCheck.

TODO in follow-up PRs:

  • checkNoChanges
  • Support markForCheck with dynamic views (waiting on bug fixes to ViewContainerRef)

@kara kara added action: review The PR is still awaiting reviews from at least one requested reviewer comp: ivy feature Label used to distinguish feature request from other issues labels Mar 9, 2018
@kara
kara requested a review from mhevery March 9, 2018 20:50
@mary-poppins

Copy link
Copy Markdown

You can preview ee9035d at https://pr22690-ee9035d.ngbuilds.io/.

Comment thread packages/core/src/render3/view_ref.ts Outdated
* multiple `markForCheck` calls to into one change detection run.
*
* This can be used to ensure an OnPush component is checked when it needs to be re-rendered
* but the two normal triggers haven't marked it dirty (i.e. inputs haven't changed and events

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you make sure that this doc and https://github.com/angular/angular/blob/master/packages/core/src/change_detection/change_detector_ref.ts#L13-L38 match. Probably improve them both?

@kara kara removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Mar 9, 2018
@mary-poppins

Copy link
Copy Markdown

You can preview 0dc88dc at https://pr22690-0dc88dc.ngbuilds.io/.

@kara

kara commented Mar 10, 2018

Copy link
Copy Markdown
Contributor Author

presubmit

@kara kara added target: major This PR is targeted for the next major release action: merge The PR is ready for merge by the caretaker labels Mar 10, 2018
@kara kara closed this in fa451bc Mar 10, 2018
@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 13, 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 feature Label used to distinguish feature request from other issues 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