revert: feat: add a flag in bootstrap to enable coalesce event change detection to improve performance (#30533) (#33230)

This reverts commit 21c1e14385.

PR Close #33230
This commit is contained in:
Matias Niemelä
2019-10-17 08:48:37 -07:00
parent d192a7b47a
commit 082aed6e46
11 changed files with 21 additions and 171 deletions

View File

@ -624,17 +624,13 @@ export declare class NgProbeToken {
export declare class NgZone {
readonly hasPendingMacrotasks: boolean;
readonly hasPendingMicrotasks: boolean;
readonly hasPendingZoneMicrotasks: boolean;
readonly isStable: boolean;
readonly lastRequestAnimationFrameId: number;
readonly onError: EventEmitter<any>;
readonly onMicrotaskEmpty: EventEmitter<any>;
readonly onStable: EventEmitter<any>;
readonly onUnstable: EventEmitter<any>;
readonly shouldCoalesceEventChangeDetection: boolean;
constructor({ enableLongStackTrace, shouldCoalesceEventChangeDetection }: {
constructor({ enableLongStackTrace }: {
enableLongStackTrace?: boolean | undefined;
shouldCoalesceEventChangeDetection?: boolean | undefined;
});
run<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any[]): T;
runGuarded<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any[]): T;