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

Function triggerEvent

packages/runtime-core/src/components/Suspense.ts:152–160  ·  view source on GitHub ↗
(
  vnode: VNode,
  name: 'onResolve' | 'onPending' | 'onFallback',
)

Source from the content-addressed store, hash-verified

150}
151
152function triggerEvent(
153 vnode: VNode,
154 name: 'onResolve' | 'onPending' | 'onFallback',
155) {
156 const eventListener = vnode.props && vnode.props[name]
157 if (isFunction(eventListener)) {
158 eventListener()
159 }
160}
161
162function mountSuspense(
163 vnode: VNode,

Callers 4

mountSuspenseFunction · 0.70
patchSuspenseFunction · 0.70
resolveFunction · 0.70
fallbackFunction · 0.70

Calls 1

isFunctionFunction · 0.90

Tested by

no test coverage detected