Home / Function/ normalizeAsync() — vue Function Reference

normalizeAsync() — vue Function Reference

Architecture documentation for the normalizeAsync() function in render-context.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  7826acfe_426e_fbac_e835_ff96a6d228a9["normalizeAsync()"]
  e3bc34d0_0f87_61e0_6d65_02d5d090ee45["render-context.ts"]
  7826acfe_426e_fbac_e835_ff96a6d228a9 -->|defined in| e3bc34d0_0f87_61e0_6d65_02d5d090ee45
  faeed4f1_db5a_f853_084a_5d92eca86f3c["constructor()"]
  faeed4f1_db5a_f853_084a_5d92eca86f3c -->|calls| 7826acfe_426e_fbac_e835_ff96a6d228a9
  style 7826acfe_426e_fbac_e835_ff96a6d228a9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/render-context.ts lines 125–134

function normalizeAsync(cache, method) {
  const fn = cache[method]
  if (isUndef(fn)) {
    return
  } else if (fn.length > 1) {
    return (key, cb) => fn.call(cache, key, cb)
  } else {
    return (key, cb) => cb(fn.call(cache, key))
  }
}

Subdomains

Called By

Frequently Asked Questions

What does normalizeAsync() do?
normalizeAsync() is a function in the vue codebase, defined in packages/server-renderer/src/render-context.ts.
Where is normalizeAsync() defined?
normalizeAsync() is defined in packages/server-renderer/src/render-context.ts at line 125.
What calls normalizeAsync()?
normalizeAsync() is called by 1 function(s): constructor.

Analyze Your Own Codebase

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

Try Supermodel Free