File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
packages/runtime-core/src Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -2579,17 +2579,14 @@ export function invalidateMount(hooks: LifecycleHook): void {
25792579}
25802580
25812581function resolveAsyncComponentPlaceholder ( anchorVnode : VNode ) {
2582- // anchor vnode is a unresolved async component
25832582 if ( anchorVnode . placeholder ) {
25842583 return anchorVnode . placeholder
25852584 }
25862585
25872586 // anchor vnode maybe is a wrapper component has single unresolved async component
2588- const asyncWrapper = anchorVnode . component
2589- if ( asyncWrapper ) {
2590- const subTree = asyncWrapper . subTree
2591- // try to locate deeper nested async component placeholder
2592- return resolveAsyncComponentPlaceholder ( subTree )
2587+ const instance = anchorVnode . component
2588+ if ( instance ) {
2589+ return resolveAsyncComponentPlaceholder ( instance . subTree )
25932590 }
25942591
25952592 return null
You can’t perform that action at this time.
0 commit comments