We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__vnode
1 parent e15dc05 commit 5156ac5Copy full SHA for 5156ac5
packages/runtime-core/src/hydration.ts
@@ -111,6 +111,21 @@ export function createHydrationFunctions(
111
let domType = node.nodeType
112
vnode.el = node
113
114
+ if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
115
+ if (!('__vnode' in node)) {
116
+ Object.defineProperty(node, '__vnode', {
117
+ value: vnode,
118
+ enumerable: false
119
+ })
120
+ }
121
+ if (!('__vueParentComponent' in node)) {
122
+ Object.defineProperty(node, '__vueParentComponent', {
123
+ value: parentComponent,
124
125
126
127
128
+
129
if (patchFlag === PatchFlags.BAIL) {
130
optimized = false
131
vnode.dynamicChildren = null
0 commit comments