fix(ivy): do not reset view dirty state in check no changes mode (#34495)
Unlike in View Engine, we currently reset the dirty state of components in the check no changes change detection cycle. This means that components cannot be marked as dirty from view lifecycle hooks because the dirty state is reset and the lifecycle hooks do not run in the check no changes CD cycle. PR Close #34495
This commit is contained in:

committed by
atscott

parent
a0eb57fb81
commit
8ef1c60bcc
@ -9,7 +9,6 @@ import {CommonModule} from '@angular/common';
|
||||
import {Component, ContentChild, Directive, ElementRef, EventEmitter, HostBinding, HostListener, Input, NgModule, OnInit, Output, Pipe, QueryList, TemplateRef, ViewChild, ViewChildren, ViewContainerRef} from '@angular/core';
|
||||
import {TVIEW} from '@angular/core/src/render3/interfaces/view';
|
||||
import {getLView} from '@angular/core/src/render3/state';
|
||||
import {loadLContext} from '@angular/core/src/render3/util/discovery_utils';
|
||||
import {ngDevModeResetPerfCounters} from '@angular/core/src/util/ng_dev_mode';
|
||||
import {TestBed} from '@angular/core/testing';
|
||||
import {By} from '@angular/platform-browser';
|
||||
|
Reference in New Issue
Block a user