Home / Function/ createAsyncPlaceholder() — vue Function Reference

createAsyncPlaceholder() — vue Function Reference

Architecture documentation for the createAsyncPlaceholder() function in resolve-async-component.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  e2eb4428_4d24_9410_1d3e_37d2bbd4f2cc["createAsyncPlaceholder()"]
  4bc7203c_0a34_d1e4_0d06_0db58ee2a28e["createEmptyVNode()"]
  e2eb4428_4d24_9410_1d3e_37d2bbd4f2cc -->|calls| 4bc7203c_0a34_d1e4_0d06_0db58ee2a28e
  style e2eb4428_4d24_9410_1d3e_37d2bbd4f2cc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/vdom/helpers/resolve-async-component.ts lines 25–36

export function createAsyncPlaceholder(
  factory: Function,
  data: VNodeData | undefined,
  context: Component,
  children: Array<VNode> | undefined,
  tag?: string
): VNode {
  const node = createEmptyVNode()
  node.asyncFactory = factory
  node.asyncMeta = { data, context, children, tag }
  return node
}

Domain

Subdomains

Frequently Asked Questions

What does createAsyncPlaceholder() do?
createAsyncPlaceholder() is a function in the vue codebase.
What does createAsyncPlaceholder() call?
createAsyncPlaceholder() calls 1 function(s): createEmptyVNode.

Analyze Your Own Codebase

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

Try Supermodel Free