MCPcopy
hub / github.com/vuejs/core / callHook

Function callHook

packages/runtime-core/src/components/BaseTransition.ts:359–367  ·  view source on GitHub ↗
(hook, args)

Source from the content-addressed store, hash-verified

357 const leavingVNodesCache = getLeavingNodesForType(state, vnode)
358
359 const callHook: TransitionHookCaller = (hook, args) => {
360 hook &&
361 callWithAsyncErrorHandling(
362 hook,
363 instance,
364 ErrorCodes.TRANSITION_HOOK,
365 args,
366 )
367 }
368
369 const callAsyncHook = (
370 hook: Hook<(el: any, done: () => void) => void>,

Callers 4

callAsyncHookFunction · 0.70
beforeEnterFunction · 0.70
enterFunction · 0.70
leaveFunction · 0.70

Calls 1

Tested by

no test coverage detected