Skip to content

Commit cf4f69a

Browse files
committed
Coalesce event change detections
This is Angular's present default for new projects and works with our application.
1 parent b395ed7 commit cf4f69a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/app.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// SPDX-License-Identifier: AGPL-3.0-only
44

55
import { provideHttpClient, withInterceptors } from '@angular/common/http';
6-
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
6+
import { ApplicationConfig, importProvidersFrom, provideZoneChangeDetection } from '@angular/core';
77

88
import { AppRoutingModule } from './app-routing.module';
99
import { unauthorizedInterceptor } from './unauthorized.interceptor';
@@ -13,5 +13,6 @@ export const appConfig: ApplicationConfig = {
1313
providers: [
1414
importProvidersFrom(AppRoutingModule),
1515
provideHttpClient(withInterceptors([unauthorizedInterceptor, withCredentialsInterceptor])),
16+
provideZoneChangeDetection({ eventCoalescing: true }),
1617
],
1718
};

0 commit comments

Comments
 (0)