Home / Function/ syncSetupProxy() — vue Function Reference

syncSetupProxy() — vue Function Reference

Architecture documentation for the syncSetupProxy() function in apiSetup.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  e80cd6c8_61be_e079_e6c9_8ffe8e330e6d["syncSetupProxy()"]
  4ad51b1f_61ec_31ba_dbb7_667d6a0a8c85["apiSetup.ts"]
  e80cd6c8_61be_e079_e6c9_8ffe8e330e6d -->|defined in| 4ad51b1f_61ec_31ba_dbb7_667d6a0a8c85
  90e994f6_eac7_d182_0e97_d5a116aca32a["createSetupContext()"]
  90e994f6_eac7_d182_0e97_d5a116aca32a -->|calls| e80cd6c8_61be_e079_e6c9_8ffe8e330e6d
  71368a44_9908_3f30_82cb_00aa5ac0c97d["defineProxyAttr()"]
  e80cd6c8_61be_e079_e6c9_8ffe8e330e6d -->|calls| 71368a44_9908_3f30_82cb_00aa5ac0c97d
  style e80cd6c8_61be_e079_e6c9_8ffe8e330e6d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/v3/apiSetup.ts lines 125–148

export function syncSetupProxy(
  to: any,
  from: any,
  prev: any,
  instance: Component,
  type: string
) {
  let changed = false
  for (const key in from) {
    if (!(key in to)) {
      changed = true
      defineProxyAttr(to, key, instance, type)
    } else if (from[key] !== prev[key]) {
      changed = true
    }
  }
  for (const key in to) {
    if (!(key in from)) {
      changed = true
      delete to[key]
    }
  }
  return changed
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does syncSetupProxy() do?
syncSetupProxy() is a function in the vue codebase, defined in src/v3/apiSetup.ts.
Where is syncSetupProxy() defined?
syncSetupProxy() is defined in src/v3/apiSetup.ts at line 125.
What does syncSetupProxy() call?
syncSetupProxy() calls 1 function(s): defineProxyAttr.
What calls syncSetupProxy()?
syncSetupProxy() is called by 1 function(s): createSetupContext.

Analyze Your Own Codebase

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

Try Supermodel Free