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

Function mountFallback

packages/runtime-core/src/components/Suspense.ts:662–680  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

660
661 const anchor = next(activeBranch!)
662 const mountFallback = () => {
663 suspense.isFallbackMountPending = false
664 if (!suspense.isInFallback) {
665 return
666 }
667 // mount the fallback tree
668 patch(
669 null,
670 fallbackVNode,
671 container,
672 anchor,
673 parentComponent,
674 null, // fallback tree will not have suspense context
675 namespace,
676 slotScopeIds,
677 optimized,
678 )
679 setActiveBranch(suspense, fallbackVNode)
680 }
681
682 const delayEnter =
683 fallbackVNode.transition && fallbackVNode.transition.mode === 'out-in'

Callers 1

fallbackFunction · 0.85

Calls 2

patchFunction · 0.85
setActiveBranchFunction · 0.85

Tested by

no test coverage detected