Browse Source

Feature/eliminate OnDestroy lifecycle hook from markets page component (#6653)

Eliminate OnDestroy lifecycle hook
pull/6636/head
Trevin Chow 3 days ago
committed by GitHub
parent
commit
3ad4428604
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 12
      apps/client/src/app/pages/markets/markets-page.component.ts

12
apps/client/src/app/pages/markets/markets-page.component.ts

@ -1,7 +1,6 @@
import { GfHomeMarketComponent } from '@ghostfolio/client/components/home-market/home-market.component';
import { Component, OnDestroy } from '@angular/core';
import { Subject } from 'rxjs';
import { Component } from '@angular/core';
@Component({
host: { class: 'page' },
@ -10,11 +9,4 @@ import { Subject } from 'rxjs';
styleUrls: ['./markets-page.scss'],
templateUrl: './markets-page.html'
})
export class GfMarketsPageComponent implements OnDestroy {
private unsubscribeSubject = new Subject<void>();
public ngOnDestroy() {
this.unsubscribeSubject.next();
this.unsubscribeSubject.complete();
}
}
export class GfMarketsPageComponent {}

Loading…
Cancel
Save