@@ -51,7 +51,7 @@ import type { QRL } from './qrl/qrl.public';
51
51
import { type NodePropData } from './scheduler' ;
52
52
import { ChoreType } from './util-chore-type' ;
53
53
import type { DeserializeContainer , HostElement , ObjToProxyMap } from './types' ;
54
- import { _CONST_PROPS , _VAR_PROPS } from './utils/constants' ;
54
+ import { _CONST_PROPS , _UNINITIALIZED , _VAR_PROPS } from './utils/constants' ;
55
55
import { isElement , isNode } from './utils/element' ;
56
56
import { EMPTY_ARRAY , EMPTY_OBJ } from './utils/flyweight' ;
57
57
import { ELEMENT_ID } from './utils/markers' ;
@@ -405,7 +405,7 @@ const inflate = (
405
405
target = Object . fromEntries (
406
406
objectKeys . map ( ( v ) =>
407
407
// initialize values with null
408
- [ v , null ]
408
+ [ v , _UNINITIALIZED ]
409
409
)
410
410
) ;
411
411
break ;
@@ -426,6 +426,7 @@ export const _constants = [
426
426
EMPTY_OBJ ,
427
427
NEEDS_COMPUTATION ,
428
428
STORE_ALL_PROPS ,
429
+ _UNINITIALIZED ,
429
430
Slot ,
430
431
Fragment ,
431
432
NaN ,
@@ -445,6 +446,7 @@ const _constantNames = [
445
446
'EMPTY_OBJ' ,
446
447
'NEEDS_COMPUTATION' ,
447
448
'STORE_ALL_PROPS' ,
449
+ '_UNINITIALIZED' ,
448
450
'Slot' ,
449
451
'Fragment' ,
450
452
'NaN' ,
@@ -1134,6 +1136,8 @@ function serialize(serializationContext: SerializationContext): void {
1134
1136
output ( TypeIds . Constant , Constants . NEEDS_COMPUTATION ) ;
1135
1137
} else if ( value === STORE_ALL_PROPS ) {
1136
1138
output ( TypeIds . Constant , Constants . STORE_ALL_PROPS ) ;
1139
+ } else if ( value === _UNINITIALIZED ) {
1140
+ output ( TypeIds . Constant , Constants . UNINITIALIZED ) ;
1137
1141
} else {
1138
1142
throw qError ( QError . serializeErrorUnknownType , [ typeof value ] ) ;
1139
1143
}
@@ -1788,6 +1792,7 @@ export const enum Constants {
1788
1792
EMPTY_OBJ ,
1789
1793
NEEDS_COMPUTATION ,
1790
1794
STORE_ALL_PROPS ,
1795
+ UNINITIALIZED ,
1791
1796
Slot ,
1792
1797
Fragment ,
1793
1798
NaN ,
0 commit comments