Home / Function/ isRef() — vue Function Reference

isRef() — vue Function Reference

Architecture documentation for the isRef() function in ref.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  f264de96_ce30_ab7e_6f2f_bd7a1a19804f["isRef()"]
  22b44e72_ad0a_6a98_e36a_e325291fd02b["ref.ts"]
  f264de96_ce30_ab7e_6f2f_bd7a1a19804f -->|defined in| 22b44e72_ad0a_6a98_e36a_e325291fd02b
  bfa86000_56fb_9b0f_e681_81fbf55feaec["doWatch()"]
  bfa86000_56fb_9b0f_e681_81fbf55feaec -->|calls| f264de96_ce30_ab7e_6f2f_bd7a1a19804f
  654a6eae_ac65_7684_a219_7d7993c2aac4["createReadonly()"]
  654a6eae_ac65_7684_a219_7d7993c2aac4 -->|calls| f264de96_ce30_ab7e_6f2f_bd7a1a19804f
  72a537aa_86c4_d26a_0519_7cc9c411ad45["createRef()"]
  72a537aa_86c4_d26a_0519_7cc9c411ad45 -->|calls| f264de96_ce30_ab7e_6f2f_bd7a1a19804f
  4a355d1c_5b31_86d7_c1a7_75ff1cd742c0["unref()"]
  4a355d1c_5b31_86d7_c1a7_75ff1cd742c0 -->|calls| f264de96_ce30_ab7e_6f2f_bd7a1a19804f
  737b31eb_8659_a208_c047_017ebd839242["proxyWithRefUnwrap()"]
  737b31eb_8659_a208_c047_017ebd839242 -->|calls| f264de96_ce30_ab7e_6f2f_bd7a1a19804f
  ac5002b9_b356_e771_28b7_dc3f7b34e18a["toRef()"]
  ac5002b9_b356_e771_28b7_dc3f7b34e18a -->|calls| f264de96_ce30_ab7e_6f2f_bd7a1a19804f
  style f264de96_ce30_ab7e_6f2f_bd7a1a19804f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/v3/reactivity/ref.ts lines 39–41

export function isRef(r: any): r is Ref {
  return !!(r && (r as Ref).__v_isRef === true)
}

Domain

Subdomains

Frequently Asked Questions

What does isRef() do?
isRef() is a function in the vue codebase, defined in src/v3/reactivity/ref.ts.
Where is isRef() defined?
isRef() is defined in src/v3/reactivity/ref.ts at line 39.
What calls isRef()?
isRef() is called by 6 function(s): createReadonly, createRef, doWatch, proxyWithRefUnwrap, toRef, unref.

Analyze Your Own Codebase

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

Try Supermodel Free