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

Function onActivated

packages/runtime-core/src/components/KeepAlive.ts:408–413  ·  view source on GitHub ↗
(
  hook: Function,
  target?: ComponentInternalInstance | null,
)

Source from the content-addressed store, hash-verified

406}
407
408export function onActivated(
409 hook: Function,
410 target?: ComponentInternalInstance | null,
411): void {
412 registerKeepAliveHook(hook, LifecycleHooks.ACTIVATED, target)
413}
414
415export function onDeactivated(
416 hook: Function,

Callers 3

setupFunction · 0.90
setupFunction · 0.85
setupFunction · 0.85

Calls 1

registerKeepAliveHookFunction · 0.85

Tested by 3

setupFunction · 0.72
setupFunction · 0.68
setupFunction · 0.68