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
  64ef09a1_8484_35c7_6154_30d045c3ca15["isRef()"]
  ada43310_8d32_ee2a_f18b_1e24fd4f8a1d["ref.ts"]
  64ef09a1_8484_35c7_6154_30d045c3ca15 -->|defined in| ada43310_8d32_ee2a_f18b_1e24fd4f8a1d
  1b10e00d_02e6_305e_b4ad_0e11475c3139["doWatch()"]
  1b10e00d_02e6_305e_b4ad_0e11475c3139 -->|calls| 64ef09a1_8484_35c7_6154_30d045c3ca15
  570658a0_90e9_3496_213a_7280821a5a99["createReadonly()"]
  570658a0_90e9_3496_213a_7280821a5a99 -->|calls| 64ef09a1_8484_35c7_6154_30d045c3ca15
  06c84f9a_d154_8c3b_e30e_4588287f8747["createRef()"]
  06c84f9a_d154_8c3b_e30e_4588287f8747 -->|calls| 64ef09a1_8484_35c7_6154_30d045c3ca15
  c22c135a_736e_cc24_ceff_8f08fe12d873["unref()"]
  c22c135a_736e_cc24_ceff_8f08fe12d873 -->|calls| 64ef09a1_8484_35c7_6154_30d045c3ca15
  f813e3f0_a8fa_7690_027d_8675e5e0c8e0["proxyWithRefUnwrap()"]
  f813e3f0_a8fa_7690_027d_8675e5e0c8e0 -->|calls| 64ef09a1_8484_35c7_6154_30d045c3ca15
  e6b8ed0b_ae2c_6b11_e0e4_f66ff5fd345c["toRef()"]
  e6b8ed0b_ae2c_6b11_e0e4_f66ff5fd345c -->|calls| 64ef09a1_8484_35c7_6154_30d045c3ca15
  style 64ef09a1_8484_35c7_6154_30d045c3ca15 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