mirror of https://github.com/vuejs/core.git
chore: warn vapor hydration for now
This commit is contained in:
parent
23939d09c6
commit
2a0cfc03b8
|
@ -11,7 +11,11 @@ import {
|
||||||
normalizeVNode,
|
normalizeVNode,
|
||||||
} from './vnode'
|
} from './vnode'
|
||||||
import { flushPostFlushCbs } from './scheduler'
|
import { flushPostFlushCbs } from './scheduler'
|
||||||
import type { ComponentInternalInstance, ComponentOptions } from './component'
|
import type {
|
||||||
|
ComponentInternalInstance,
|
||||||
|
ComponentOptions,
|
||||||
|
ConcreteComponent,
|
||||||
|
} from './component'
|
||||||
import { invokeDirectiveHook } from './directives'
|
import { invokeDirectiveHook } from './directives'
|
||||||
import { warn } from './warning'
|
import { warn } from './warning'
|
||||||
import {
|
import {
|
||||||
|
@ -274,6 +278,10 @@ export function createHydrationFunctions(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
} else if (shapeFlag & ShapeFlags.COMPONENT) {
|
} else if (shapeFlag & ShapeFlags.COMPONENT) {
|
||||||
|
if ((vnode.type as ConcreteComponent).__vapor) {
|
||||||
|
throw new Error('Vapor component hydration is not supported yet.')
|
||||||
|
}
|
||||||
|
|
||||||
// when setting up the render effect, if the initial vnode already
|
// when setting up the render effect, if the initial vnode already
|
||||||
// has .el set, the component will perform hydration instead of mount
|
// has .el set, the component will perform hydration instead of mount
|
||||||
// on its sub-tree.
|
// on its sub-tree.
|
||||||
|
|
Loading…
Reference in New Issue