Home / Function/ setSetupRef() — vue Function Reference

setSetupRef() — vue Function Reference

Architecture documentation for the setSetupRef() function in template-ref.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  19c9bd1a_8ded_bda9_cb68_e25948978596["setSetupRef()"]
  e92873d4_293f_9488_86af_ed0867a761e4["registerRef()"]
  e92873d4_293f_9488_86af_ed0867a761e4 -->|calls| 19c9bd1a_8ded_bda9_cb68_e25948978596
  style 19c9bd1a_8ded_bda9_cb68_e25948978596 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

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