Home / Function/ placeholder() — vue Function Reference

placeholder() — vue Function Reference

Architecture documentation for the placeholder() function in transition.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  323b60df_4a40_eb22_c98d_eb0d61cfecb6["placeholder()"]
  a0548f3d_ad52_9c9a_fe0e_c4bc5ed97f32["default.render()"]
  a0548f3d_ad52_9c9a_fe0e_c4bc5ed97f32 -->|calls| 323b60df_4a40_eb22_c98d_eb0d61cfecb6
  style 323b60df_4a40_eb22_c98d_eb0d61cfecb6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/platforms/web/runtime/components/transition.ts lines 59–66

function placeholder(h: Function, rawChild: VNode): VNode | undefined {
  // @ts-expect-error
  if (/\d-keep-alive$/.test(rawChild.tag)) {
    return h('keep-alive', {
      props: rawChild.componentOptions!.propsData
    })
  }
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does placeholder() do?
placeholder() is a function in the vue codebase.
What calls placeholder()?
placeholder() is called by 1 function(s): default.render.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free