This repository was archived by the owner on Jul 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/runtime-vapor/src Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -128,15 +128,14 @@ function mountComponent(
128
128
}
129
129
130
130
// hook: beforeMount
131
- invokeLifecycle ( instance , VaporLifecycleHooks . BEFORE_MOUNT , 'beforeMount' )
131
+ invokeLifecycle ( instance , VaporLifecycleHooks . BEFORE_MOUNT )
132
132
133
133
insert ( instance . block ! , instance . container )
134
134
135
135
// hook: mounted
136
136
invokeLifecycle (
137
137
instance ,
138
138
VaporLifecycleHooks . MOUNTED ,
139
- 'mounted' ,
140
139
instance => ( instance . isMounted = true ) ,
141
140
true ,
142
141
)
@@ -156,7 +155,7 @@ export function unmountComponent(instance: ComponentInternalInstance): void {
156
155
const { container, scope } = instance
157
156
158
157
// hook: beforeUnmount
159
- invokeLifecycle ( instance , VaporLifecycleHooks . BEFORE_UNMOUNT , 'beforeUnmount' )
158
+ invokeLifecycle ( instance , VaporLifecycleHooks . BEFORE_UNMOUNT )
160
159
161
160
scope . stop ( )
162
161
container . textContent = ''
@@ -165,7 +164,6 @@ export function unmountComponent(instance: ComponentInternalInstance): void {
165
164
invokeLifecycle (
166
165
instance ,
167
166
VaporLifecycleHooks . UNMOUNTED ,
168
- 'unmounted' ,
169
167
instance => queuePostFlushCb ( ( ) => ( instance . isUnmounted = true ) ) ,
170
168
true ,
171
169
)
You can’t perform that action at this time.
0 commit comments