Home / Function/ hasAncestorData() — vue Function Reference

hasAncestorData() — vue Function Reference

Architecture documentation for the hasAncestorData() function in render.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  39e92ed8_978b_086e_5133_9d7a0c28b594["hasAncestorData()"]
  4c03e6b5_515a_506e_9433_bf75e6caf6a5["renderStartingTag()"]
  4c03e6b5_515a_506e_9433_bf75e6caf6a5 -->|calls| 39e92ed8_978b_086e_5133_9d7a0c28b594
  2be3818d_a4f3_495c_543c_ee071b428982["isDef()"]
  39e92ed8_978b_086e_5133_9d7a0c28b594 -->|calls| 2be3818d_a4f3_495c_543c_ee071b428982
  style 39e92ed8_978b_086e_5133_9d7a0c28b594 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/render.ts lines 336–341

function hasAncestorData(node: VNode) {
  const parentNode = node.parent
  return (
    isDef(parentNode) && (isDef(parentNode.data) || hasAncestorData(parentNode))
  )
}

Subdomains

Calls

Frequently Asked Questions

What does hasAncestorData() do?
hasAncestorData() is a function in the vue codebase.
What does hasAncestorData() call?
hasAncestorData() calls 1 function(s): isDef.
What calls hasAncestorData()?
hasAncestorData() is called by 1 function(s): renderStartingTag.

Analyze Your Own Codebase

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

Try Supermodel Free