refactor(runtime-vapor): remove created & beforeCreate hooks

This commit is contained in:
三咲智子 Kevin Deng 2024-03-16 03:32:16 +08:00
parent d282af9430
commit 5d15314c4e
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
3 changed files with 0 additions and 20 deletions

View File

@ -9,8 +9,6 @@ import { ErrorTypeStrings, callWithAsyncErrorHandling } from './errorHandling'
import { toHandlerKey } from '@vue/shared'
export enum VaporLifecycleHooks {
BEFORE_CREATE = 'bc',
CREATED = 'c',
BEFORE_MOUNT = 'bm',
MOUNTED = 'm',
BEFORE_UPDATE = 'bu',

View File

@ -69,14 +69,6 @@ export interface ComponentInternalInstance {
isUnmounted: boolean
isUpdating: boolean
// TODO: registory of provides, lifecycles, ...
/**
* @internal
*/
[VaporLifecycleHooks.BEFORE_CREATE]: LifecycleHook
/**
* @internal
*/
[VaporLifecycleHooks.CREATED]: LifecycleHook
/**
* @internal
*/
@ -186,14 +178,6 @@ export const createComponentInstance = (
isUnmounted: false,
isUpdating: false,
// TODO: registory of provides, appContext, lifecycles, ...
/**
* @internal
*/
[VaporLifecycleHooks.BEFORE_CREATE]: null,
/**
* @internal
*/
[VaporLifecycleHooks.CREATED]: null,
/**
* @internal
*/

View File

@ -39,8 +39,6 @@ export type ErrorTypes =
export const ErrorTypeStrings: Record<ErrorTypes, string> = {
// [VaporLifecycleHooks.SERVER_PREFETCH]: 'serverPrefetch hook',
[VaporLifecycleHooks.BEFORE_CREATE]: 'beforeCreate hook',
[VaporLifecycleHooks.CREATED]: 'created hook',
[VaporLifecycleHooks.BEFORE_MOUNT]: 'beforeMount hook',
[VaporLifecycleHooks.MOUNTED]: 'mounted hook',
[VaporLifecycleHooks.BEFORE_UPDATE]: 'beforeUpdate hook',