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,9 +1242,7 @@ function baseCreateRenderer(
const placeholder = (instance.subTree = createVNode(Comment))
processCommentNode(null, placeholder, container!, anchor)
}
return
}
} else {
setupRenderEffect(
instance,
initialVNode,
@ -1254,6 +1252,7 @@ function baseCreateRenderer(
namespace,
optimized
)
}
if (__DEV__) {
popWarningContext()