Home / Function/ getHookArgumentsLength() — vue Function Reference

getHookArgumentsLength() — vue Function Reference

Architecture documentation for the getHookArgumentsLength() function in transition.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  ef3b1734_589d_ca16_c8a8_f015ea1202b6["getHookArgumentsLength()"]
  ba54cdc9_f934_43fb_f1d2_3319595d4c1d["enter()"]
  ba54cdc9_f934_43fb_f1d2_3319595d4c1d -->|calls| ef3b1734_589d_ca16_c8a8_f015ea1202b6
  bb5c970d_2e75_b59b_6ddf_fe4f60d2e887["leave()"]
  bb5c970d_2e75_b59b_6ddf_fe4f60d2e887 -->|calls| ef3b1734_589d_ca16_c8a8_f015ea1202b6
  299f2646_f776_9b7d_1179_7b9087b1e66c["isUndef()"]
  ef3b1734_589d_ca16_c8a8_f015ea1202b6 -->|calls| 299f2646_f776_9b7d_1179_7b9087b1e66c
  5b855538_2046_796e_16f9_7327a61399cb["isDef()"]
  ef3b1734_589d_ca16_c8a8_f015ea1202b6 -->|calls| 5b855538_2046_796e_16f9_7327a61399cb
  style ef3b1734_589d_ca16_c8a8_f015ea1202b6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/platforms/web/runtime/modules/transition.ts lines 304–319

function getHookArgumentsLength(fn: Function): boolean {
  if (isUndef(fn)) {
    return false
  }
  // @ts-expect-error
  const invokerFns = fn.fns
  if (isDef(invokerFns)) {
    // invoker
    return getHookArgumentsLength(
      Array.isArray(invokerFns) ? invokerFns[0] : invokerFns
    )
  } else {
    // @ts-expect-error
    return (fn._length || fn.length) > 1
  }
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does getHookArgumentsLength() do?
getHookArgumentsLength() is a function in the vue codebase.
What does getHookArgumentsLength() call?
getHookArgumentsLength() calls 2 function(s): isDef, isUndef.
What calls getHookArgumentsLength()?
getHookArgumentsLength() is called by 2 function(s): enter, leave.

Analyze Your Own Codebase

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

Try Supermodel Free