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
  e3ef7cea_179b_7c08_2222_a8a2e71458a4["normalizeAsync()"]
  23664868_1ebc_ec78_8e7a_31d054089810["constructor()"]
  23664868_1ebc_ec78_8e7a_31d054089810 -->|calls| e3ef7cea_179b_7c08_2222_a8a2e71458a4
  a1f5b8ca_b6d5_6b24_155e_038685c97c85["isUndef()"]
  e3ef7cea_179b_7c08_2222_a8a2e71458a4 -->|calls| a1f5b8ca_b6d5_6b24_155e_038685c97c85
  style e3ef7cea_179b_7c08_2222_a8a2e71458a4 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

Calls

Called By

Frequently Asked Questions

What does normalizeAsync() do?
normalizeAsync() is a function in the vue codebase.
What does normalizeAsync() call?
normalizeAsync() calls 1 function(s): isUndef.
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