Fix concurrent asynchronous calls. (#675)
* Fix concurrent asynchronous calls. * Remove test without mempool info websocket. * Remove isloading$ variable.
This commit is contained in:
@@ -1,21 +1,11 @@
|
||||
import { Component, OnInit, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
||||
import { StateService } from 'src/app/services/state.service';
|
||||
import { Subscription, Observable } from 'rxjs';
|
||||
|
||||
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
||||
@Component({
|
||||
selector: 'app-blockchain',
|
||||
templateUrl: './blockchain.component.html',
|
||||
styleUrls: ['./blockchain.component.scss'],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class BlockchainComponent implements OnInit {
|
||||
isLoading$: Observable<boolean>;
|
||||
export class BlockchainComponent {
|
||||
|
||||
constructor(
|
||||
private stateService: StateService,
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.isLoading$ = this.stateService.isLoadingWebSocket$;
|
||||
}
|
||||
constructor() { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user