mirror of https://github.com/vuejs/core.git
fix(runtime-vapor): apiLifeCycle circular dependencies (#244)
This commit is contained in:
parent
d4511150a5
commit
be6a2d1d35
|
@ -11,21 +11,7 @@ import {
|
|||
} from '@vue/reactivity'
|
||||
import { ErrorTypeStrings, callWithAsyncErrorHandling } from './errorHandling'
|
||||
import { toHandlerKey } from '@vue/shared'
|
||||
|
||||
export enum VaporLifecycleHooks {
|
||||
BEFORE_MOUNT = 'bm',
|
||||
MOUNTED = 'm',
|
||||
BEFORE_UPDATE = 'bu',
|
||||
UPDATED = 'u',
|
||||
BEFORE_UNMOUNT = 'bum',
|
||||
UNMOUNTED = 'um',
|
||||
DEACTIVATED = 'da',
|
||||
ACTIVATED = 'a',
|
||||
RENDER_TRIGGERED = 'rtg',
|
||||
RENDER_TRACKED = 'rtc',
|
||||
ERROR_CAPTURED = 'ec',
|
||||
// SERVER_PREFETCH = 'sp',
|
||||
}
|
||||
import { VaporLifecycleHooks } from './enums'
|
||||
|
||||
const injectHook = (
|
||||
type: VaporLifecycleHooks,
|
||||
|
|
|
@ -8,7 +8,7 @@ import {
|
|||
import { insert, querySelector, remove } from './dom/element'
|
||||
import { flushPostFlushCbs, queuePostFlushCb } from './scheduler'
|
||||
import { invokeLifecycle } from './componentLifecycle'
|
||||
import { VaporLifecycleHooks } from './apiLifecycle'
|
||||
import { VaporLifecycleHooks } from './enums'
|
||||
import {
|
||||
pauseTracking,
|
||||
proxyRefs,
|
||||
|
|
|
@ -23,7 +23,7 @@ import {
|
|||
normalizeEmitsOptions,
|
||||
} from './componentEmits'
|
||||
import { type RawSlots, type StaticSlots, initSlots } from './componentSlots'
|
||||
import { VaporLifecycleHooks } from './apiLifecycle'
|
||||
import { VaporLifecycleHooks } from './enums'
|
||||
import { warn } from './warning'
|
||||
import {
|
||||
type AppConfig,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { invokeArrayFns } from '@vue/shared'
|
||||
import type { VaporLifecycleHooks } from './apiLifecycle'
|
||||
import type { VaporLifecycleHooks } from './enums'
|
||||
import { type ComponentInternalInstance, setCurrentInstance } from './component'
|
||||
import { queuePostFlushCb } from './scheduler'
|
||||
import { type DirectiveHookName, invokeDirectiveHook } from './directives'
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
export enum VaporLifecycleHooks {
|
||||
BEFORE_MOUNT = 'bm',
|
||||
MOUNTED = 'm',
|
||||
BEFORE_UPDATE = 'bu',
|
||||
UPDATED = 'u',
|
||||
BEFORE_UNMOUNT = 'bum',
|
||||
UNMOUNTED = 'um',
|
||||
DEACTIVATED = 'da',
|
||||
ACTIVATED = 'a',
|
||||
RENDER_TRIGGERED = 'rtg',
|
||||
RENDER_TRACKED = 'rtc',
|
||||
ERROR_CAPTURED = 'ec',
|
||||
// SERVER_PREFETCH = 'sp',
|
||||
}
|
|
@ -6,7 +6,7 @@
|
|||
import type { ComponentInternalInstance } from './component'
|
||||
import { isFunction, isPromise } from '@vue/shared'
|
||||
import { warn } from './warning'
|
||||
import { VaporLifecycleHooks } from './apiLifecycle'
|
||||
import { VaporLifecycleHooks } from './enums'
|
||||
import {
|
||||
BaseWatchErrorCodes,
|
||||
pauseTracking,
|
||||
|
|
Loading…
Reference in New Issue