SSR: fix transferstate block ordering

This commit is contained in:
Mononaut 2023-10-29 17:48:40 +00:00
parent 9cd33825bf
commit 4fbbff6614
No known key found for this signature in database
GPG key ID: A3F058E41374C04E

View file

@ -59,6 +59,9 @@ export class WebsocketService {
const { response: theInitData } = this.transferState.get<any>(initData, null) || {};
if (theInitData) {
if (theInitData.body.blocks) {
theInitData.body.blocks = theInitData.body.blocks.reverse();
}
this.stateService.isLoadingWebSocket$.next(false);
this.handleResponse(theInitData.body);
this.startSubscription(false, true);