Home / Function/ sameVnode() — vue Function Reference

sameVnode() — vue Function Reference

Architecture documentation for the sameVnode() function in patch.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  45dfcfb9_deee_5d79_9a0b_3bbcf65726c5["sameVnode()"]
  2da82d37_d0a8_bdfd_86ba_26432270288e["createPatchFunction()"]
  2da82d37_d0a8_bdfd_86ba_26432270288e -->|calls| 45dfcfb9_deee_5d79_9a0b_3bbcf65726c5
  5f941660_3d7c_e38c_e35e_62664915e823["sameInputType()"]
  45dfcfb9_deee_5d79_9a0b_3bbcf65726c5 -->|calls| 5f941660_3d7c_e38c_e35e_62664915e823
  style 45dfcfb9_deee_5d79_9a0b_3bbcf65726c5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/vdom/patch.ts lines 36–46

function sameVnode(a, b) {
  return (
    a.key === b.key &&
    a.asyncFactory === b.asyncFactory &&
    ((a.tag === b.tag &&
      a.isComment === b.isComment &&
      isDef(a.data) === isDef(b.data) &&
      sameInputType(a, b)) ||
      (isTrue(a.isAsyncPlaceholder) && isUndef(b.asyncFactory.error)))
  )
}

Domain

Subdomains

Frequently Asked Questions

What does sameVnode() do?
sameVnode() is a function in the vue codebase.
What does sameVnode() call?
sameVnode() calls 1 function(s): sameInputType.
What calls sameVnode()?
sameVnode() is called by 1 function(s): createPatchFunction.

Analyze Your Own Codebase

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

Try Supermodel Free