Skip to content

Commit

Permalink
fix: remove client hydration
Browse files Browse the repository at this point in the history
  • Loading branch information
GODrums committed Oct 31, 2024
1 parent c935598 commit c7936ff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions webapp/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
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';
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 () => {
Expand All @@ -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 }
Expand Down

0 comments on commit c7936ff

Please sign in to comment.