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(
128128 }
129129
130130 // hook: beforeMount
131- invokeLifecycle ( instance , VaporLifecycleHooks . BEFORE_MOUNT , 'beforeMount' )
131+ invokeLifecycle ( instance , VaporLifecycleHooks . BEFORE_MOUNT )
132132
133133 insert ( instance . block ! , instance . container )
134134
135135 // hook: mounted
136136 invokeLifecycle (
137137 instance ,
138138 VaporLifecycleHooks . MOUNTED ,
139- 'mounted' ,
140139 instance => ( instance . isMounted = true ) ,
141140 true ,
142141 )
@@ -156,7 +155,7 @@ export function unmountComponent(instance: ComponentInternalInstance): void {
156155 const { container, scope } = instance
157156
158157 // hook: beforeUnmount
159- invokeLifecycle ( instance , VaporLifecycleHooks . BEFORE_UNMOUNT , 'beforeUnmount' )
158+ invokeLifecycle ( instance , VaporLifecycleHooks . BEFORE_UNMOUNT )
160159
161160 scope . stop ( )
162161 container . textContent = ''
@@ -165,7 +164,6 @@ export function unmountComponent(instance: ComponentInternalInstance): void {
165164 invokeLifecycle (
166165 instance ,
167166 VaporLifecycleHooks . UNMOUNTED ,
168- 'unmounted' ,
169167 instance => queuePostFlushCb ( ( ) => ( instance . isUnmounted = true ) ) ,
170168 true ,
171169 )
You can’t perform that action at this time.
0 commit comments