setSetupRef() — vue Function Reference
Architecture documentation for the setSetupRef() function in template-ref.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 0e8bc21e_ce42_dee3_5589_a01d0fb30ae2["setSetupRef()"] 929b2960_01b4_a2f3_80ea_6c6432422d9d["registerRef()"] 929b2960_01b4_a2f3_80ea_6c6432422d9d -->|calls| 0e8bc21e_ce42_dee3_5589_a01d0fb30ae2 style 0e8bc21e_ce42_dee3_5589_a01d0fb30ae2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/vdom/modules/template-ref.ts lines 82–94
function setSetupRef(
{ _setupState }: Component,
key: string | number,
val: any
) {
if (_setupState && hasOwn(_setupState, key as string)) {
if (isRef(_setupState[key])) {
_setupState[key].value = val
} else {
_setupState[key] = val
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does setSetupRef() do?
setSetupRef() is a function in the vue codebase.
What calls setSetupRef()?
setSetupRef() is called by 1 function(s): registerRef.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free