MCPcopy
hub / github.com/vuejs/core / needTransition

Function needTransition

packages/runtime-core/src/renderer.ts:2501–2510  ·  view source on GitHub ↗
(
  parentSuspense: SuspenseBoundary | null,
  transition: TransitionHooks | null,
)

Source from the content-addressed store, hash-verified

2499}
2500
2501export function needTransition(
2502 parentSuspense: SuspenseBoundary | null,
2503 transition: TransitionHooks | null,
2504): boolean | null {
2505 return (
2506 (!parentSuspense || (parentSuspense && !parentSuspense.pendingBranch)) &&
2507 transition &&
2508 !transition.persisted
2509 )
2510}
2511
2512/**
2513 * #1156

Callers 2

hydrateElementFunction · 0.90
mountElementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected