Skip to content

More specifications required for OnPush change detection  #50943

@krp12345

Description

@krp12345

Describe the problem that you experienced

Docs says when OnPush change detection is used, default automatically detecting change detection strategy is deactivated.
But if we check demo project, https://stackblitz.com/edit/angular-change-detection-strategy-onpush-whd8dk?file=src%2Fapp%2Fapp.component.html

Here what I did is, I have simple button and simple property and with that, when button is clicked, change detection is triggered without explicit calling it.

So, that proves that there are cases when change detection runs automatically even if we use onpush.

Enter the URL of the topic with the problem

https://angular.io/api/core/ChangeDetectionStrategy

Describe what you were looking for in the documentation

All such cases where automatic change detection run when having onpush strategy should be documented.

Describe the actions that led you to experience the problem

I did the PoC with OnPush.

Describe what you want to experience that would fix the problem

All such cases where automatic change detection run when having onpush strategy should be documented.

Add a screenshot if that helps illustrate the problem

No response

If this problem caused an exception or error, please paste it here

No response

If the problem is browser-specific, please specify the device, OS, browser, and version

No response

Provide any additional information here in as much as detail as you can

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: docsRelated to the documentation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions