Skip to content

Commit

Permalink
fix: directive
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Sep 22, 2024
1 parent e177e9b commit ecb93b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions packages/runtime-vapor/src/componentLifecycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ import { invokeArrayFns } from '@vue/shared'
import type { VaporLifecycleHooks } from './enums'
import { type ComponentInternalInstance, setCurrentInstance } from './component'
import { queuePostFlushCb } from './scheduler'
import type { DirectiveHookName } from './directives'

export function invokeLifecycle(
instance: ComponentInternalInstance,
lifecycle: VaporLifecycleHooks,
directive: DirectiveHookName,
cb?: (instance: ComponentInternalInstance) => void,
post?: boolean,
): void {
Expand All @@ -27,8 +25,6 @@ export function invokeLifecycle(
}

function invokeSub() {
instance.comps.forEach(comp =>
invokeLifecycle(comp, lifecycle, directive, cb, post),
)
instance.comps.forEach(comp => invokeLifecycle(comp, lifecycle, cb, post))
}
}
1 change: 0 additions & 1 deletion packages/runtime-vapor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export {
withDirectives,
type Directive,
type DirectiveBinding,
type DirectiveHook,
type DirectiveArguments,
type DirectiveModifiers,
} from './directives'
Expand Down

0 comments on commit ecb93b9

Please sign in to comment.