Skip to content

Commit

Permalink
chore(runtime-core): use ReactiveFlags.SKIP in vnode for consistency (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
clmystes authored Aug 21, 2020
1 parent 3c05f8b commit 0f8c991
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/runtime-core/src/vnode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -118,7 +118,7 @@ export interface VNode<
/**
* @internal
*/
__v_skip: true
[ReactiveFlags.SKIP]: true
type: VNodeTypes
props: (VNodeProps & ExtraProps) | null
key: string | number | null
Expand Down Expand Up @@ -375,7 +375,7 @@ function _createVNode(

const vnode: VNode = {
__v_isVNode: true,
__v_skip: true,
[ReactiveFlags.SKIP]: true,
type,
props,
key: props && normalizeKey(props),
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 0f8c991

Please sign in to comment.