Skip to content

Commit 5d15314

Browse files
committed
refactor(runtime-vapor): remove created & beforeCreate hooks
1 parent d282af9 commit 5d15314

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

packages/runtime-vapor/src/apiLifecycle.ts

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import { ErrorTypeStrings, callWithAsyncErrorHandling } from './errorHandling'
99
import { toHandlerKey } from '@vue/shared'
1010

1111
export enum VaporLifecycleHooks {
12-
BEFORE_CREATE = 'bc',
13-
CREATED = 'c',
1412
BEFORE_MOUNT = 'bm',
1513
MOUNTED = 'm',
1614
BEFORE_UPDATE = 'bu',

packages/runtime-vapor/src/component.ts

-16
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,6 @@ export interface ComponentInternalInstance {
6969
isUnmounted: boolean
7070
isUpdating: boolean
7171
// TODO: registory of provides, lifecycles, ...
72-
/**
73-
* @internal
74-
*/
75-
[VaporLifecycleHooks.BEFORE_CREATE]: LifecycleHook
76-
/**
77-
* @internal
78-
*/
79-
[VaporLifecycleHooks.CREATED]: LifecycleHook
8072
/**
8173
* @internal
8274
*/
@@ -186,14 +178,6 @@ export const createComponentInstance = (
186178
isUnmounted: false,
187179
isUpdating: false,
188180
// TODO: registory of provides, appContext, lifecycles, ...
189-
/**
190-
* @internal
191-
*/
192-
[VaporLifecycleHooks.BEFORE_CREATE]: null,
193-
/**
194-
* @internal
195-
*/
196-
[VaporLifecycleHooks.CREATED]: null,
197181
/**
198182
* @internal
199183
*/

packages/runtime-vapor/src/errorHandling.ts

-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ export type ErrorTypes =
3939

4040
export const ErrorTypeStrings: Record<ErrorTypes, string> = {
4141
// [VaporLifecycleHooks.SERVER_PREFETCH]: 'serverPrefetch hook',
42-
[VaporLifecycleHooks.BEFORE_CREATE]: 'beforeCreate hook',
43-
[VaporLifecycleHooks.CREATED]: 'created hook',
4442
[VaporLifecycleHooks.BEFORE_MOUNT]: 'beforeMount hook',
4543
[VaporLifecycleHooks.MOUNTED]: 'mounted hook',
4644
[VaporLifecycleHooks.BEFORE_UPDATE]: 'beforeUpdate hook',

0 commit comments

Comments
 (0)