File tree 1 file changed +4
-6
lines changed
packages/runtime-core/src
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -752,19 +752,17 @@ function baseCreateRenderer(
752
752
if ( treeOwnerId && treeOwnerId !== scopeId ) {
753
753
hostSetScopeId ( el , treeOwnerId + '-s' )
754
754
}
755
-
756
- if ( transition && ! transition . persisted ) {
757
- transition . beforeEnter ( el )
758
- }
759
755
}
760
-
761
- hostInsert ( el , container , anchor )
762
756
// #1583 For inside suspense + suspense not resolved case, enter hook should call when suspense resolved
763
757
// #1689 For inside suspense + suspense resolved case, just call it
764
758
const needCallTransitionHooks =
765
759
( ! parentSuspense || ( parentSuspense && parentSuspense ! . isResolved ) ) &&
766
760
transition &&
767
761
! transition . persisted
762
+ if ( needCallTransitionHooks ) {
763
+ transition ! . beforeEnter ( el )
764
+ }
765
+ hostInsert ( el , container , anchor )
768
766
if (
769
767
( vnodeHook = props && props . onVnodeMounted ) ||
770
768
needCallTransitionHooks ||
You can’t perform that action at this time.
0 commit comments