Home / Function/ proxyRefs() — vue Function Reference

proxyRefs() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  8265b818_190d_33ad_9e37_5d79c36ba98e["proxyRefs()"]
  ada43310_8d32_ee2a_f18b_1e24fd4f8a1d["ref.ts"]
  8265b818_190d_33ad_9e37_5d79c36ba98e -->|defined in| ada43310_8d32_ee2a_f18b_1e24fd4f8a1d
  998575fc_6104_64df_b366_9135ccd9e5f9["isReactive()"]
  8265b818_190d_33ad_9e37_5d79c36ba98e -->|calls| 998575fc_6104_64df_b366_9135ccd9e5f9
  f813e3f0_a8fa_7690_027d_8675e5e0c8e0["proxyWithRefUnwrap()"]
  8265b818_190d_33ad_9e37_5d79c36ba98e -->|calls| f813e3f0_a8fa_7690_027d_8675e5e0c8e0
  style 8265b818_190d_33ad_9e37_5d79c36ba98e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/v3/reactivity/ref.ts lines 97–109

export function proxyRefs<T extends object>(
  objectWithRefs: T
): ShallowUnwrapRef<T> {
  if (isReactive(objectWithRefs)) {
    return objectWithRefs as any
  }
  const proxy = {}
  const keys = Object.keys(objectWithRefs)
  for (let i = 0; i < keys.length; i++) {
    proxyWithRefUnwrap(proxy, objectWithRefs, keys[i])
  }
  return proxy as any
}

Domain

Subdomains

Frequently Asked Questions

What does proxyRefs() do?
proxyRefs() is a function in the vue codebase, defined in src/v3/reactivity/ref.ts.
Where is proxyRefs() defined?
proxyRefs() is defined in src/v3/reactivity/ref.ts at line 97.
What does proxyRefs() call?
proxyRefs() calls 2 function(s): isReactive, proxyWithRefUnwrap.

Analyze Your Own Codebase

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

Try Supermodel Free