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
  cf619ec4_7b08_dcbd_77cf_5dee8ef554bf["proxyRefs()"]
  7673a120_6161_8253_592c_2125fb6cfd5d["isReactive()"]
  cf619ec4_7b08_dcbd_77cf_5dee8ef554bf -->|calls| 7673a120_6161_8253_592c_2125fb6cfd5d
  0c0e51d9_10d5_5aee_bedb_8decee4220fe["proxyWithRefUnwrap()"]
  cf619ec4_7b08_dcbd_77cf_5dee8ef554bf -->|calls| 0c0e51d9_10d5_5aee_bedb_8decee4220fe
  style cf619ec4_7b08_dcbd_77cf_5dee8ef554bf 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.
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