@@ -11,7 +11,7 @@ Registers a callback to be called after the component has been mounted.
11
11
- ** Type**
12
12
13
13
``` ts
14
- function onMounted(callback : () => void ): void
14
+ function onMounted(callback : () => void , target ? : ComponentInternalInstance | null ): void
15
15
```
16
16
17
17
- ** Details **
@@ -53,7 +53,7 @@ Registers a callback to be called after the component has updated its DOM tree d
53
53
- ** Type **
54
54
55
55
` ` ` ts
56
- function onUpdated(callback: () => void): void
56
+ function onUpdated(callback: () => void, target?: ComponentInternalInstance | null ): void
57
57
` ` `
58
58
59
59
- ** Details **
@@ -96,7 +96,7 @@ Registers a callback to be called after the component has been unmounted.
96
96
- ** Type **
97
97
98
98
` ` ` ts
99
- function onUnmounted(callback: () => void): void
99
+ function onUnmounted(callback: () => void, target?: ComponentInternalInstance | null ): void
100
100
` ` `
101
101
102
102
- ** Details **
@@ -135,7 +135,7 @@ Registers a hook to be called right before the component is to be mounted.
135
135
- ** Type **
136
136
137
137
` ` ` ts
138
- function onBeforeMount(callback: () => void): void
138
+ function onBeforeMount(callback: () => void, target?: ComponentInternalInstance | null ): void
139
139
` ` `
140
140
141
141
- ** Details **
@@ -151,7 +151,7 @@ Registers a hook to be called right before the component is about to update its
151
151
- ** Type **
152
152
153
153
` ` ` ts
154
- function onBeforeUpdate(callback: () => void): void
154
+ function onBeforeUpdate(callback: () => void, target?: ComponentInternalInstance | null ): void
155
155
` ` `
156
156
157
157
- ** Details **
@@ -167,7 +167,7 @@ Registers a hook to be called right before a component instance is to be unmount
167
167
- ** Type **
168
168
169
169
` ` ` ts
170
- function onBeforeUnmount(callback: () => void): void
170
+ function onBeforeUnmount(callback: () => void, target?: ComponentInternalInstance | null ): void
171
171
` ` `
172
172
173
173
- ** Details **
@@ -282,7 +282,7 @@ Registers a callback to be called after the component instance is inserted into
282
282
- ** Type **
283
283
284
284
` ` ` ts
285
- function onActivated(callback: () => void): void
285
+ function onActivated(callback: () => void, target?: ComponentInternalInstance | null ): void
286
286
` ` `
287
287
288
288
- ** See also ** [Guide - Lifecycle of Cached Instance ](/ guide / built - ins / keep - alive #lifecycle - of - cached - instance )
@@ -296,7 +296,7 @@ Registers a callback to be called after the component instance is removed from t
296
296
- ** Type **
297
297
298
298
` ` ` ts
299
- function onDeactivated(callback: () => void): void
299
+ function onDeactivated(callback: () => void, target?: ComponentInternalInstance | null ): void
300
300
` ` `
301
301
302
302
- ** See also ** [Guide - Lifecycle of Cached Instance ](/ guide / built - ins / keep - alive #lifecycle - of - cached - instance )
0 commit comments