mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 22:58:30 +01:00
SSR: fix transferstate block ordering
This commit is contained in:
parent
9cd33825bf
commit
4fbbff6614
1 changed files with 3 additions and 0 deletions
|
@ -59,6 +59,9 @@ export class WebsocketService {
|
||||||
|
|
||||||
const { response: theInitData } = this.transferState.get<any>(initData, null) || {};
|
const { response: theInitData } = this.transferState.get<any>(initData, null) || {};
|
||||||
if (theInitData) {
|
if (theInitData) {
|
||||||
|
if (theInitData.body.blocks) {
|
||||||
|
theInitData.body.blocks = theInitData.body.blocks.reverse();
|
||||||
|
}
|
||||||
this.stateService.isLoadingWebSocket$.next(false);
|
this.stateService.isLoadingWebSocket$.next(false);
|
||||||
this.handleResponse(theInitData.body);
|
this.handleResponse(theInitData.body);
|
||||||
this.startSubscription(false, true);
|
this.startSubscription(false, true);
|
||||||
|
|
Loading…
Add table
Reference in a new issue