@@ -8,7 +8,12 @@ import { emitEvent } from '../shared/qrl/qrl-class';
8
8
import type { QRL } from '../shared/qrl/qrl.public' ;
9
9
import { ChoreType } from '../shared/util-chore-type' ;
10
10
import { _SharedContainer } from '../shared/shared-container' ;
11
- import { inflateQRL , parseQRL , wrapDeserializerProxy } from '../shared/shared-serialization' ;
11
+ import {
12
+ inflateQRL ,
13
+ parseQRL ,
14
+ preprocessState ,
15
+ wrapDeserializerProxy ,
16
+ } from '../shared/shared-serialization' ;
12
17
import { QContainerValue , type HostElement , type ObjToProxyMap } from '../shared/types' ;
13
18
import { EMPTY_ARRAY } from '../shared/utils/flyweight' ;
14
19
import {
@@ -112,6 +117,7 @@ export class DomContainer extends _SharedContainer implements IClientContainer {
112
117
public $storeProxyMap$ : ObjToProxyMap = new WeakMap ( ) ;
113
118
public $qFuncs$ : Array < ( ...args : unknown [ ] ) => unknown > ;
114
119
public $instanceHash$ : string ;
120
+ public $forwardRefs$ : Array < number > | null = null ;
115
121
public vNodeLocate : ( id : string | Element ) => VNode = ( id ) => vnode_locate ( this . rootVNode , id ) ;
116
122
117
123
private $stateData$ : unknown [ ] ;
@@ -159,6 +165,7 @@ export class DomContainer extends _SharedContainer implements IClientContainer {
159
165
if ( qwikStates . length !== 0 ) {
160
166
const lastState = qwikStates [ qwikStates . length - 1 ] ;
161
167
this . $rawStateData$ = JSON . parse ( lastState . textContent ! ) ;
168
+ preprocessState ( this . $rawStateData$ , this ) ;
162
169
this . $stateData$ = wrapDeserializerProxy ( this , this . $rawStateData$ ) as unknown [ ] ;
163
170
}
164
171
}
0 commit comments