Skip to content

Commit 0f8c991

Browse files
authored
chore(runtime-core): use ReactiveFlags.SKIP in vnode for consistency (#1901)
1 parent 3c05f8b commit 0f8c991

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: packages/runtime-core/src/vnode.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
Component
2121
} from './component'
2222
import { RawSlots } from './componentSlots'
23-
import { isProxy, Ref, toRaw } from '@vue/reactivity'
23+
import { isProxy, Ref, toRaw, ReactiveFlags } from '@vue/reactivity'
2424
import { AppContext } from './apiCreateApp'
2525
import {
2626
SuspenseImpl,
@@ -118,7 +118,7 @@ export interface VNode<
118118
/**
119119
* @internal
120120
*/
121-
__v_skip: true
121+
[ReactiveFlags.SKIP]: true
122122
type: VNodeTypes
123123
props: (VNodeProps & ExtraProps) | null
124124
key: string | number | null
@@ -375,7 +375,7 @@ function _createVNode(
375375

376376
const vnode: VNode = {
377377
__v_isVNode: true,
378-
__v_skip: true,
378+
[ReactiveFlags.SKIP]: true,
379379
type,
380380
props,
381381
key: props && normalizeKey(props),
@@ -440,7 +440,7 @@ export function cloneVNode<T, U>(
440440
: props
441441
return {
442442
__v_isVNode: true,
443-
__v_skip: true,
443+
[ReactiveFlags.SKIP]: true,
444444
type: vnode.type,
445445
props: mergedProps,
446446
key: mergedProps && normalizeKey(mergedProps),

0 commit comments

Comments
 (0)