Skip to content

Commit

Permalink
fix(runtime-core): properly pop warning context when mounting compone…
Browse files Browse the repository at this point in the history
…nts with async setup
  • Loading branch information
yyx990803 committed Dec 13, 2023
1 parent 0db336f commit 69a2acc
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions packages/runtime-core/src/renderer.ts
Expand Up @@ -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`)
Expand Down

0 comments on commit 69a2acc

Please sign in to comment.