feat(ssr/suspense): suspense hydration
In order to support hydration of async components, server-rendered fragments must be explicitly marked with comment nodes.
This commit is contained in:
@@ -212,7 +212,8 @@ export function createVNode(
|
||||
): VNode {
|
||||
if (!type) {
|
||||
if (__DEV__) {
|
||||
warn(`Invalid vnode type when creating vnode: ${type}.`)
|
||||
debugger
|
||||
warn(`fsef Invalid vnode type when creating vnode: ${type}.`)
|
||||
}
|
||||
type = Comment
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user