fix(runtime-core): properly pop warning context when mounting components with async setup

This commit is contained in:
Evan You 2023-12-13 17:57:57 +08:00
parent 0db336ff6c
commit 69a2acc6ea
1 changed files with 10 additions and 11 deletions

View File

@ -1242,19 +1242,18 @@ function baseCreateRenderer(
const placeholder = (instance.subTree = createVNode(Comment))
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__) {
popWarningContext()
endMeasure(instance, `mount`)