Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit ecb93b9

Browse files
committed
fix: directive
1 parent e177e9b commit ecb93b9

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

packages/runtime-vapor/src/componentLifecycle.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ import { invokeArrayFns } from '@vue/shared'
22
import type { VaporLifecycleHooks } from './enums'
33
import { type ComponentInternalInstance, setCurrentInstance } from './component'
44
import { queuePostFlushCb } from './scheduler'
5-
import type { DirectiveHookName } from './directives'
65

76
export function invokeLifecycle(
87
instance: ComponentInternalInstance,
98
lifecycle: VaporLifecycleHooks,
10-
directive: DirectiveHookName,
119
cb?: (instance: ComponentInternalInstance) => void,
1210
post?: boolean,
1311
): void {
@@ -27,8 +25,6 @@ export function invokeLifecycle(
2725
}
2826

2927
function invokeSub() {
30-
instance.comps.forEach(comp =>
31-
invokeLifecycle(comp, lifecycle, directive, cb, post),
32-
)
28+
instance.comps.forEach(comp => invokeLifecycle(comp, lifecycle, cb, post))
3329
}
3430
}

packages/runtime-vapor/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ export {
7676
withDirectives,
7777
type Directive,
7878
type DirectiveBinding,
79-
type DirectiveHook,
8079
type DirectiveArguments,
8180
type DirectiveModifiers,
8281
} from './directives'

0 commit comments

Comments
 (0)