Skip to content

Commit

Permalink
Merge pull request #3 from rollthecloudinc/tz-2-forms-demo-panel-page…
Browse files Browse the repository at this point in the history
…-rendering-twice

[tz-2] Try to fix double render
  • Loading branch information
ng-druid authored Jul 12, 2024
2 parents 43db8c8 + f62615e commit c2eb08f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -233,5 +233,8 @@
}
}
}
},
"cli": {
"analytics": false
}
}
5 changes: 3 additions & 2 deletions projects/spear/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BrowserModule, provideClientHydration /*, BrowserTransferStateModule */ } from '@angular/platform-browser';
import { NgModule, APP_INITIALIZER, SecurityContext, PLATFORM_ID } from '@angular/core';
import { NgModule, APP_INITIALIZER, SecurityContext, PLATFORM_ID, APP_ID } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpClientModule, HTTP_INTERCEPTORS, HttpClientJsonpModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Expand Down Expand Up @@ -91,7 +91,7 @@ export function markedOptionsFactory(): MarkedOptions {
@NgModule({
declarations: [AppComponent ],
imports: [
BrowserModule.withServerTransition({ appId: 'serverApp' }),
BrowserModule,
CommonModule,
HttpClientModule,
HttpClientJsonpModule,
Expand Down Expand Up @@ -169,6 +169,7 @@ export function markedOptionsFactory(): MarkedOptions {
providers: [
provideClientHydration(),
CatchAllGuard,
{ provide: APP_ID, useValue: 'serverApp' },
{ provide: SITE_NAME, useValue: environment.site },
{ provide: CLIENT_SETTINGS, useValue: new ClientSettings(environment.clientSettings) },
{ provide: MEDIA_SETTINGS, useValue: new MediaSettings(environment.mediaSettings) },
Expand Down

0 comments on commit c2eb08f

Please sign in to comment.