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
  f00627f9_f6f9_0415_07cf_adaab8eba795["isRef()"]
  880ea200_f528_af26_3f6f_c77fc2f21647["doWatch()"]
  880ea200_f528_af26_3f6f_c77fc2f21647 -->|calls| f00627f9_f6f9_0415_07cf_adaab8eba795
  ccd19137_b11e_4069_105d_a9c9c66236df["createReadonly()"]
  ccd19137_b11e_4069_105d_a9c9c66236df -->|calls| f00627f9_f6f9_0415_07cf_adaab8eba795
  8ae90034_2894_93a3_a1c6_fc0c92d3709b["createRef()"]
  8ae90034_2894_93a3_a1c6_fc0c92d3709b -->|calls| f00627f9_f6f9_0415_07cf_adaab8eba795
  5f34ea21_9dfa_40df_6a7b_8392e1fefb95["unref()"]
  5f34ea21_9dfa_40df_6a7b_8392e1fefb95 -->|calls| f00627f9_f6f9_0415_07cf_adaab8eba795
  0c0e51d9_10d5_5aee_bedb_8decee4220fe["proxyWithRefUnwrap()"]
  0c0e51d9_10d5_5aee_bedb_8decee4220fe -->|calls| f00627f9_f6f9_0415_07cf_adaab8eba795
  8cd6bec1_60c2_832f_556e_2bc2e21ed86e["toRef()"]
  8cd6bec1_60c2_832f_556e_2bc2e21ed86e -->|calls| f00627f9_f6f9_0415_07cf_adaab8eba795
  style f00627f9_f6f9_0415_07cf_adaab8eba795 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