chore: remove unnecessary statements

This commit is contained in:
Evan You 2023-12-12 23:47:38 +08:00
parent 85c804092f
commit 96aeb24d66
1 changed files with 0 additions and 2 deletions

View File

@ -1459,12 +1459,10 @@ function baseCreateRenderer(
// this will cause crash because we don't know the root node yet
if (nonHydratedAsyncRoot) {
// only sync the properties and abort the rest of operations
toggleRecurse(instance, false)
if (next) {
next.el = vnode.el
updateComponentPreRender(instance, next, optimized)
}
toggleRecurse(instance, true)
// and continue the rest of operations once the deps are resolved
nonHydratedAsyncRoot.asyncDep!.then(() => {
// the instance may be destroyed during the time period