|
@@ -1276,7 +1276,7 @@ function baseCreateRenderer(
|
|
|
const componentUpdateFn = () => {
|
|
const componentUpdateFn = () => {
|
|
|
if (!instance.isMounted) {
|
|
if (!instance.isMounted) {
|
|
|
let vnodeHook: VNodeHook | null | undefined
|
|
let vnodeHook: VNodeHook | null | undefined
|
|
|
- const { el, props } = initialVNode
|
|
|
|
|
|
|
+ const { el, props, type } = initialVNode
|
|
|
const { bm, m, parent } = instance
|
|
const { bm, m, parent } = instance
|
|
|
const isAsyncWrapperVNode = isAsyncWrapper(initialVNode)
|
|
const isAsyncWrapperVNode = isAsyncWrapper(initialVNode)
|
|
|
|
|
|
|
@@ -1325,8 +1325,11 @@ function baseCreateRenderer(
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (isAsyncWrapperVNode) {
|
|
|
|
|
- ;(initialVNode.type as ComponentOptions).__asyncLoader!().then(
|
|
|
|
|
|
|
+ if (
|
|
|
|
|
+ isAsyncWrapperVNode &&
|
|
|
|
|
+ !(type as ComponentOptions).__asyncResolved
|
|
|
|
|
+ ) {
|
|
|
|
|
+ ;(type as ComponentOptions).__asyncLoader!().then(
|
|
|
// note: we are moving the render call into an async callback,
|
|
// note: we are moving the render call into an async callback,
|
|
|
// which means it won't track dependencies - but it's ok because
|
|
// which means it won't track dependencies - but it's ok because
|
|
|
// a server-rendered async wrapper is already in resolved state
|
|
// a server-rendered async wrapper is already in resolved state
|