chore: comment on cloneVNode implementation [ci skip]
This commit is contained in:
		
							parent
							
								
									8d7a186def
								
							
						
					
					
						commit
						a8aa328907
					
				@ -233,6 +233,8 @@ export function createVNode(
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function cloneVNode(vnode: VNode, extraProps?: Data): VNode {
 | 
					export function cloneVNode(vnode: VNode, extraProps?: Data): VNode {
 | 
				
			||||||
 | 
					  // This is intentionally NOT using spread or extend to avoid the runtime
 | 
				
			||||||
 | 
					  // key enumeration cost.
 | 
				
			||||||
  return {
 | 
					  return {
 | 
				
			||||||
    _isVNode: true,
 | 
					    _isVNode: true,
 | 
				
			||||||
    type: vnode.type,
 | 
					    type: vnode.type,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user