Fix deprecated SSR state transfer imports

This commit is contained in:
Mononaut 2023-10-18 23:04:21 +00:00
parent 10e468d463
commit 29aaeef47b
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,6 @@
import { HTTP_INTERCEPTORS } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { ServerModule, ServerTransferStateModule } from '@angular/platform-server';
import { ServerModule } from '@angular/platform-server';
import { AppModule } from './app.module';
import { AppComponent } from './components/app/app.component';
@ -10,7 +10,6 @@ import { HttpCacheInterceptor } from './services/http-cache.interceptor';
imports: [
AppModule,
ServerModule,
ServerTransferStateModule,
],
providers: [
{ provide: HTTP_INTERCEPTORS, useClass: HttpCacheInterceptor, multi: true }

View File

@ -6,7 +6,7 @@ import { Transaction } from '../interfaces/electrs.interface';
import { Subscription } from 'rxjs';
import { ApiService } from './api.service';
import { take } from 'rxjs/operators';
import { TransferState, makeStateKey } from '@angular/platform-browser';
import { TransferState, makeStateKey } from '@angular/core';
import { CacheService } from './cache.service';
import { uncompressDeltaChange, uncompressTx } from '../shared/common.utils';