Skip to content

Commit

Permalink
chore: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Sep 27, 2024
1 parent f9f2287 commit d0e0b88
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/runtime-core/src/hydration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
normalizeStyle,
stringifyStyle,
} from '@vue/shared'
import type { RendererInternals } from './renderer'
import { type RendererInternals, needTransition } from './renderer'
import { setRef } from './rendererTemplateRef'
import {
type SuspenseBoundary,
Expand Down Expand Up @@ -385,8 +385,10 @@ export function createHydrationFunctions(
let needCallTransitionHooks = false
if (isTemplateNode(el)) {
needCallTransitionHooks =
transition &&
!transition.persisted &&
needTransition(
null, // no need check parentSuspense in hydration
transition,
) &&
parentComponent &&
parentComponent.vnode.props &&
parentComponent.vnode.props.appear
Expand Down

0 comments on commit d0e0b88

Please sign in to comment.