Home / Function/ unref() — vue Function Reference

unref() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  5f34ea21_9dfa_40df_6a7b_8392e1fefb95["unref()"]
  f00627f9_f6f9_0415_07cf_adaab8eba795["isRef()"]
  5f34ea21_9dfa_40df_6a7b_8392e1fefb95 -->|calls| f00627f9_f6f9_0415_07cf_adaab8eba795
  style 5f34ea21_9dfa_40df_6a7b_8392e1fefb95 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/v3/reactivity/ref.ts lines 93–95

export function unref<T>(ref: T | Ref<T>): T {
  return isRef(ref) ? (ref.value as any) : ref
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does unref() do?
unref() is a function in the vue codebase.
What does unref() call?
unref() calls 1 function(s): isRef.

Analyze Your Own Codebase

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

Try Supermodel Free