This repository was archived by the owner on Jul 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +19
-19
lines changed
packages/runtime-vapor/src Expand file tree Collapse file tree 6 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -11,21 +11,7 @@ import {
1111} from '@vue/reactivity'
1212import { ErrorTypeStrings , callWithAsyncErrorHandling } from './errorHandling'
1313import { toHandlerKey } from '@vue/shared'
14-
15- export enum VaporLifecycleHooks {
16- BEFORE_MOUNT = 'bm' ,
17- MOUNTED = 'm' ,
18- BEFORE_UPDATE = 'bu' ,
19- UPDATED = 'u' ,
20- BEFORE_UNMOUNT = 'bum' ,
21- UNMOUNTED = 'um' ,
22- DEACTIVATED = 'da' ,
23- ACTIVATED = 'a' ,
24- RENDER_TRIGGERED = 'rtg' ,
25- RENDER_TRACKED = 'rtc' ,
26- ERROR_CAPTURED = 'ec' ,
27- // SERVER_PREFETCH = 'sp',
28- }
14+ import { VaporLifecycleHooks } from './enums'
2915
3016const injectHook = (
3117 type : VaporLifecycleHooks ,
Original file line number Diff line number Diff line change 88import { insert , querySelector , remove } from './dom/element'
99import { flushPostFlushCbs , queuePostFlushCb } from './scheduler'
1010import { invokeLifecycle } from './componentLifecycle'
11- import { VaporLifecycleHooks } from './apiLifecycle '
11+ import { VaporLifecycleHooks } from './enums '
1212import {
1313 pauseTracking ,
1414 proxyRefs ,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import {
2323 normalizeEmitsOptions ,
2424} from './componentEmits'
2525import { type RawSlots , type StaticSlots , initSlots } from './componentSlots'
26- import { VaporLifecycleHooks } from './apiLifecycle '
26+ import { VaporLifecycleHooks } from './enums '
2727import { warn } from './warning'
2828import {
2929 type AppConfig ,
Original file line number Diff line number Diff line change 11import { invokeArrayFns } from '@vue/shared'
2- import type { VaporLifecycleHooks } from './apiLifecycle '
2+ import type { VaporLifecycleHooks } from './enums '
33import { type ComponentInternalInstance , setCurrentInstance } from './component'
44import { queuePostFlushCb } from './scheduler'
55import { type DirectiveHookName , invokeDirectiveHook } from './directives'
Original file line number Diff line number Diff line change 1+ export enum VaporLifecycleHooks {
2+ BEFORE_MOUNT = 'bm' ,
3+ MOUNTED = 'm' ,
4+ BEFORE_UPDATE = 'bu' ,
5+ UPDATED = 'u' ,
6+ BEFORE_UNMOUNT = 'bum' ,
7+ UNMOUNTED = 'um' ,
8+ DEACTIVATED = 'da' ,
9+ ACTIVATED = 'a' ,
10+ RENDER_TRIGGERED = 'rtg' ,
11+ RENDER_TRACKED = 'rtc' ,
12+ ERROR_CAPTURED = 'ec' ,
13+ // SERVER_PREFETCH = 'sp',
14+ }
Original file line number Diff line number Diff line change 66import type { ComponentInternalInstance } from './component'
77import { isFunction , isPromise } from '@vue/shared'
88import { warn } from './warning'
9- import { VaporLifecycleHooks } from './apiLifecycle '
9+ import { VaporLifecycleHooks } from './enums '
1010import {
1111 BaseWatchErrorCodes ,
1212 pauseTracking ,
You can’t perform that action at this time.
0 commit comments