chore: comment on cloneVNode implementation [ci skip]

This commit is contained in:
Evan You 2019-10-27 20:45:54 -04:00
parent 8d7a186def
commit a8aa328907

View File

@ -233,6 +233,8 @@ export function createVNode(
}
export function cloneVNode(vnode: VNode, extraProps?: Data): VNode {
// This is intentionally NOT using spread or extend to avoid the runtime
// key enumeration cost.
return {
_isVNode: true,
type: vnode.type,