OnPush component in dev mode will only trigger change detection once. #39545
Labels
area: core
Issues related to the framework runtime
core: change detection
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Milestone
Consider the following case.
The reason is App is a OnPush component with a hostView, calling fixture.detectChanges() will run a detectChanges() and checkNoChanges() .
And the App component is onPush, so the checkNoChanges() run will ignore App component, so the counters will be 1
Which is not correct.
Another case is:
The reason is the same, the
checkNoChanges()
will skip theOnPushCmp
, so theExpressionChanged
error is not thrown.The text was updated successfully, but these errors were encountered: