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

Function onErrorCaptured

packages/runtime-core/src/apiLifecycle.ts:111–116  ·  view source on GitHub ↗
(
  hook: ErrorCapturedHook<TError>,
  target: ComponentInternalInstance | null = currentInstance,
)

Source from the content-addressed store, hash-verified

109) => boolean | void
110
111export function onErrorCaptured<TError = Error>(
112 hook: ErrorCapturedHook<TError>,
113 target: ComponentInternalInstance | null = currentInstance,
114): void {
115 injectHook(LifecycleHooks.ERROR_CAPTURED, hook, target)
116}

Callers 4

setupFunction · 0.85
setupFunction · 0.85
setupFunction · 0.85
setupFunction · 0.85

Calls 1

injectHookFunction · 0.85

Tested by 4

setupFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68
setupFunction · 0.68