@@ -296,14 +296,14 @@ class SSRContainer extends _SharedContainer implements ISSRContainer {
296296 return value ;
297297 }
298298 }
299- ssrNode = ssrNode . currentComponentNode ;
299+ ssrNode = ssrNode . parentSsrNode ;
300300 }
301301 return undefined ;
302302 }
303303
304304 getParentHost ( host : HostElement ) : HostElement | null {
305305 const ssrNode : ISsrNode = host as any ;
306- return ssrNode . currentComponentNode as ISsrNode | null ;
306+ return ssrNode . parentSsrNode as ISsrNode | null ;
307307 }
308308
309309 setHostProp < T > ( host : ISsrNode , name : string , value : T ) : void {
@@ -510,7 +510,7 @@ class SSRContainer extends _SharedContainer implements ISSRContainer {
510510 const componentFrame = this . componentStack . pop ( ) ! ;
511511 componentFrame . releaseUnclaimedProjections ( this . unclaimedProjections ) ;
512512 this . closeFragment ( ) ;
513- this . currentComponentNode = this . currentComponentNode ?. currentComponentNode || null ;
513+ this . currentComponentNode = this . currentComponentNode ?. parentSsrNode || null ;
514514 }
515515
516516 /** Write a text node with correct escaping. Save the length of the text node in the vNodeData. */
@@ -726,7 +726,6 @@ class SSRContainer extends _SharedContainer implements ISSRContainer {
726726 }
727727 value = String ( rootId ) ;
728728 }
729- let skip = false ;
730729 switch ( key ) {
731730 case QScopedStyle :
732731 write ( VNodeDataChar . SCOPED_STYLE_CHAR ) ;
@@ -741,11 +740,7 @@ class SSRContainer extends _SharedContainer implements ISSRContainer {
741740 write ( VNodeDataChar . PROPS_CHAR ) ;
742741 break ;
743742 case ELEMENT_KEY :
744- if ( Object . keys ( value ) . length === 0 ) {
745- skip = true ;
746- } else {
747- write ( VNodeDataChar . KEY_CHAR ) ;
748- }
743+ write ( VNodeDataChar . KEY_CHAR ) ;
749744 break ;
750745 case ELEMENT_SEQ :
751746 write ( VNodeDataChar . SEQ_CHAR ) ;
@@ -771,9 +766,7 @@ class SSRContainer extends _SharedContainer implements ISSRContainer {
771766 write ( key ) ;
772767 write ( VNodeDataChar . SEPARATOR_CHAR ) ;
773768 }
774- if ( ! skip ) {
775- write ( value ) ;
776- }
769+ write ( value ) ;
777770 }
778771 }
779772
0 commit comments