Fix concurrent asynchronous calls. (#675)
* Fix concurrent asynchronous calls. * Remove test without mempool info websocket. * Remove isloading$ variable.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<div class="text-center" class="blockchain-wrapper">
|
||||
<div class="position-container">
|
||||
<span>
|
||||
<app-mempool-blocks [isLoading$]="isLoading$"></app-mempool-blocks>
|
||||
<app-blockchain-blocks [isLoading$]="isLoading$"></app-blockchain-blocks>
|
||||
<app-mempool-blocks></app-mempool-blocks>
|
||||
<app-blockchain-blocks></app-blockchain-blocks>
|
||||
<div id="divider"></div>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -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