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

PR Close #30533
This commit is contained in:
JiaLiPassion
2019-05-17 20:50:02 +09:00
committed by Matias Niemelä
parent 4c63e6ba04
commit 21c1e14385
11 changed files with 171 additions and 21 deletions

View File

@ -175,7 +175,7 @@ export function stringifyElement(el: any /** TODO #9100 */): string {
}
export function createNgZone(): NgZone {
return new NgZone({enableLongStackTrace: true});
return new NgZone({enableLongStackTrace: true, shouldCoalesceEventChangeDetection: false});
}
export function isCommentNode(node: Node): boolean {