Home / Function/ locateNode() — vue Function Reference

locateNode() — vue Function Reference

Architecture documentation for the locateNode() function in show.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  8499e09a_6c71_56c4_24bc_a402027e4f6b["locateNode()"]
  86b1f556_b1fa_0724_27bc_8fc0c9d9a7e8["show.ts"]
  8499e09a_6c71_56c4_24bc_a402027e4f6b -->|defined in| 86b1f556_b1fa_0724_27bc_8fc0c9d9a7e8
  a7bbf0eb_426f_b981_27bb_b5bb5815ce7e["default.bind()"]
  a7bbf0eb_426f_b981_27bb_b5bb5815ce7e -->|calls| 8499e09a_6c71_56c4_24bc_a402027e4f6b
  71114619_8ea6_b5a9_d2c0_e66dfa3ed020["default.update()"]
  71114619_8ea6_b5a9_d2c0_e66dfa3ed020 -->|calls| 8499e09a_6c71_56c4_24bc_a402027e4f6b
  style 8499e09a_6c71_56c4_24bc_a402027e4f6b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/platforms/web/runtime/directives/show.ts lines 6–11

function locateNode(vnode: VNode | VNodeWithData): VNodeWithData {
  // @ts-expect-error
  return vnode.componentInstance && (!vnode.data || !vnode.data.transition)
    ? locateNode(vnode.componentInstance._vnode!)
    : vnode
}

Domain

Subdomains

Frequently Asked Questions

What does locateNode() do?
locateNode() is a function in the vue codebase, defined in src/platforms/web/runtime/directives/show.ts.
Where is locateNode() defined?
locateNode() is defined in src/platforms/web/runtime/directives/show.ts at line 6.
What calls locateNode()?
locateNode() is called by 2 function(s): default.bind, default.update.

Analyze Your Own Codebase

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

Try Supermodel Free