Skip to content

Commit 2ee7634

Browse files
committed
chore: improve code
1 parent c8cd0e9 commit 2ee7634

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/runtime-core/src/hydration.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,8 @@ export function createHydrationFunctions(
375375
if (isTemplateNode(el)) {
376376
needCallTransitionHooks =
377377
needTransition(parentSuspense, transition) &&
378-
parentComponent &&
379-
parentComponent.vnode.props &&
380-
parentComponent.vnode.props.appear
378+
vnode.props &&
379+
vnode.props.appear
381380

382381
const content = (el as HTMLTemplateElement).content
383382
.firstChild as Element

0 commit comments

Comments
 (0)