sameVnode() — vue Function Reference
Architecture documentation for the sameVnode() function in patch.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 6818a46b_6353_f7ba_68e1_b56cd8b066ef["sameVnode()"] 020681fa_600e_5c84_6a4e_f1289077cc78["patch.ts"] 6818a46b_6353_f7ba_68e1_b56cd8b066ef -->|defined in| 020681fa_600e_5c84_6a4e_f1289077cc78 dca56857_b66b_81ec_c7d3_4029eaf84e02["createPatchFunction()"] dca56857_b66b_81ec_c7d3_4029eaf84e02 -->|calls| 6818a46b_6353_f7ba_68e1_b56cd8b066ef 1b5c367a_1444_4201_9c24_3a2ad7bdc9d8["sameInputType()"] 6818a46b_6353_f7ba_68e1_b56cd8b066ef -->|calls| 1b5c367a_1444_4201_9c24_3a2ad7bdc9d8 style 6818a46b_6353_f7ba_68e1_b56cd8b066ef 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
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does sameVnode() do?
sameVnode() is a function in the vue codebase, defined in src/core/vdom/patch.ts.
Where is sameVnode() defined?
sameVnode() is defined in src/core/vdom/patch.ts at line 36.
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