feat: add a flag in bootstrap to enable coalesce event change detection to improve performance (#30533)
PR Close #30533
This commit is contained in:

committed by
Matias Niemelä

parent
4c63e6ba04
commit
21c1e14385
@ -402,7 +402,8 @@ export class TestBedViewEngine implements TestBed {
|
||||
overrideComponentView(component, compFactory);
|
||||
}
|
||||
|
||||
const ngZone = new NgZone({enableLongStackTrace: true});
|
||||
const ngZone =
|
||||
new NgZone({enableLongStackTrace: true, shouldCoalesceEventChangeDetection: false});
|
||||
const providers: StaticProvider[] = [{provide: NgZone, useValue: ngZone}];
|
||||
const ngZoneInjector = Injector.create({
|
||||
providers: providers,
|
||||
|
Reference in New Issue
Block a user