From c7936fffa14545a2675c197b82533e2da8ed5794 Mon Sep 17 00:00:00 2001 From: GODrums Date: Thu, 31 Oct 2024 16:48:30 +0100 Subject: [PATCH] fix: remove client hydration --- webapp/src/app/app.config.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/webapp/src/app/app.config.ts b/webapp/src/app/app.config.ts index 3b1ee5c4..f4788bf7 100644 --- a/webapp/src/app/app.config.ts +++ b/webapp/src/app/app.config.ts @@ -1,7 +1,7 @@ import { APP_INITIALIZER, ApplicationConfig, provideExperimentalZonelessChangeDetection } from '@angular/core'; import { provideRouter, TitleStrategy } from '@angular/router'; import { provideAnimationsAsync } from '@angular/platform-browser/animations/async'; -import { provideHttpClient, withInterceptors } from '@angular/common/http'; +import { provideHttpClient, withFetch, withInterceptors } from '@angular/common/http'; import { provideAngularQuery, QueryClient } from '@tanstack/angular-query-experimental'; import { environment } from 'environments/environment'; import { BASE_PATH } from 'app/core/modules/openapi'; @@ -9,7 +9,6 @@ import { routes } from 'app/app.routes'; import { AnalyticsService } from './analytics.service'; import { securityInterceptor } from './core/security/security-interceptor'; import { TemplatePageTitleStrategy } from './core/TemplatePageTitleStrategy'; -import { provideClientHydration, withHttpTransferCacheOptions } from '@angular/platform-browser'; function initializeAnalytics(analyticsService: AnalyticsService): () => void { return () => { @@ -22,9 +21,8 @@ export const appConfig: ApplicationConfig = { provideExperimentalZonelessChangeDetection(), provideRouter(routes), provideAngularQuery(new QueryClient()), - provideHttpClient(withInterceptors([securityInterceptor])), + provideHttpClient(withInterceptors([securityInterceptor]), withFetch()), provideAnimationsAsync(), - provideClientHydration(), { provide: BASE_PATH, useValue: environment.serverUrl }, { provide: APP_INITIALIZER, useFactory: initializeAnalytics, multi: true, deps: [AnalyticsService] }, { provide: TitleStrategy, useClass: TemplatePageTitleStrategy }