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
  1cb75796_39e2_4190_8602_3712ff6cf2f7["isRef()"]
  b2856354_51ef_6ef1_ec4b_ae2e72186601["doWatch()"]
  b2856354_51ef_6ef1_ec4b_ae2e72186601 -->|calls| 1cb75796_39e2_4190_8602_3712ff6cf2f7
  4f0f141e_f70c_4533_8c1b_de374c265d9a["createReadonly()"]
  4f0f141e_f70c_4533_8c1b_de374c265d9a -->|calls| 1cb75796_39e2_4190_8602_3712ff6cf2f7
  9db383c1_1631_2173_15e0_354055493aaf["createRef()"]
  9db383c1_1631_2173_15e0_354055493aaf -->|calls| 1cb75796_39e2_4190_8602_3712ff6cf2f7
  2f8de10d_5f7d_23f9_c15e_52fc27f9243a["unref()"]
  2f8de10d_5f7d_23f9_c15e_52fc27f9243a -->|calls| 1cb75796_39e2_4190_8602_3712ff6cf2f7
  0dff7671_dbca_28ee_2e55_169d9e03ef4c["proxyWithRefUnwrap()"]
  0dff7671_dbca_28ee_2e55_169d9e03ef4c -->|calls| 1cb75796_39e2_4190_8602_3712ff6cf2f7
  c619f776_b648_0a68_f21c_f8846567229b["toRef()"]
  c619f776_b648_0a68_f21c_f8846567229b -->|calls| 1cb75796_39e2_4190_8602_3712ff6cf2f7
  style 1cb75796_39e2_4190_8602_3712ff6cf2f7 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.
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