]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(runtime-core): use ReactiveFlags.SKIP in vnode for consistency (#1901)
authorLi Chen <clmystes@gmail.com>
Fri, 21 Aug 2020 17:45:42 +0000 (01:45 +0800)
committerGitHub <noreply@github.com>
Fri, 21 Aug 2020 17:45:42 +0000 (13:45 -0400)
packages/runtime-core/src/vnode.ts

index efdd2b1114b76a64b4dedeb2a4a0c19bb27cbd48..b444215ca26ef6c51dc2534d2987b798f2b7d796 100644 (file)
@@ -20,7 +20,7 @@ import {
   Component
 } from './component'
 import { RawSlots } from './componentSlots'
-import { isProxy, Ref, toRaw } from '@vue/reactivity'
+import { isProxy, Ref, toRaw, ReactiveFlags } from '@vue/reactivity'
 import { AppContext } from './apiCreateApp'
 import {
   SuspenseImpl,
@@ -118,7 +118,7 @@ export interface VNode<
   /**
    * @internal
    */
-  __v_skip: true
+  [ReactiveFlags.SKIP]: true
   type: VNodeTypes
   props: (VNodeProps & ExtraProps) | null
   key: string | number | null
@@ -375,7 +375,7 @@ function _createVNode(
 
   const vnode: VNode = {
     __v_isVNode: true,
-    __v_skip: true,
+    [ReactiveFlags.SKIP]: true,
     type,
     props,
     key: props && normalizeKey(props),
@@ -440,7 +440,7 @@ export function cloneVNode<T, U>(
     : props
   return {
     __v_isVNode: true,
-    __v_skip: true,
+    [ReactiveFlags.SKIP]: true,
     type: vnode.type,
     props: mergedProps,
     key: mergedProps && normalizeKey(mergedProps),