mirror of https://github.com/vuejs/core.git
fix(runtime-core): properly pop warning context when mounting components with async setup
This commit is contained in:
parent
0db336ff6c
commit
69a2acc6ea
|
@ -1242,19 +1242,18 @@ function baseCreateRenderer(
|
||||||
const placeholder = (instance.subTree = createVNode(Comment))
|
const placeholder = (instance.subTree = createVNode(Comment))
|
||||||
processCommentNode(null, placeholder, container!, anchor)
|
processCommentNode(null, placeholder, container!, anchor)
|
||||||
}
|
}
|
||||||
return
|
} else {
|
||||||
|
setupRenderEffect(
|
||||||
|
instance,
|
||||||
|
initialVNode,
|
||||||
|
container,
|
||||||
|
anchor,
|
||||||
|
parentSuspense,
|
||||||
|
namespace,
|
||||||
|
optimized
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
setupRenderEffect(
|
|
||||||
instance,
|
|
||||||
initialVNode,
|
|
||||||
container,
|
|
||||||
anchor,
|
|
||||||
parentSuspense,
|
|
||||||
namespace,
|
|
||||||
optimized
|
|
||||||
)
|
|
||||||
|
|
||||||
if (__DEV__) {
|
if (__DEV__) {
|
||||||
popWarningContext()
|
popWarningContext()
|
||||||
endMeasure(instance, `mount`)
|
endMeasure(instance, `mount`)
|
||||||
|
|
Loading…
Reference in New Issue