SSR: fix transferstate block ordering
This commit is contained in:
		
							parent
							
								
									9cd33825bf
								
							
						
					
					
						commit
						4fbbff6614
					
				| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user