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
  c6f121f8_7674_0a18_9296_a291b5e06c4e["getHookArgumentsLength()"]
  9054be9b_2c50_137b_ab18_88c14104b006["transition.ts"]
  c6f121f8_7674_0a18_9296_a291b5e06c4e -->|defined in| 9054be9b_2c50_137b_ab18_88c14104b006
  5e37a19f_afa0_336d_f8ac_7a3188ea138b["enter()"]
  5e37a19f_afa0_336d_f8ac_7a3188ea138b -->|calls| c6f121f8_7674_0a18_9296_a291b5e06c4e
  755e8a88_aa58_e408_b321_a376fb0706e8["leave()"]
  755e8a88_aa58_e408_b321_a376fb0706e8 -->|calls| c6f121f8_7674_0a18_9296_a291b5e06c4e
  style c6f121f8_7674_0a18_9296_a291b5e06c4e 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, defined in src/platforms/web/runtime/modules/transition.ts.
Where is getHookArgumentsLength() defined?
getHookArgumentsLength() is defined in src/platforms/web/runtime/modules/transition.ts at line 304.
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