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
  d0cc259b_f0c4_b266_1e3b_ae5a4b1bbfd2["locateNode()"]
  3c48df22_8120_1441_419e_fb53854bac7a["default.bind()"]
  3c48df22_8120_1441_419e_fb53854bac7a -->|calls| d0cc259b_f0c4_b266_1e3b_ae5a4b1bbfd2
  7252c3d1_00b4_fa7a_aff5_325056c580fa["default.update()"]
  7252c3d1_00b4_fa7a_aff5_325056c580fa -->|calls| d0cc259b_f0c4_b266_1e3b_ae5a4b1bbfd2
  style d0cc259b_f0c4_b266_1e3b_ae5a4b1bbfd2 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.
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