Skip to content

Commit c4efde2

Browse files
Add onActivated and onDeacitvated hooks to the list (#1051)
* Add onActivated and onDeactivated to the list addresses #1018 * Add onActivated and onDeactivated hooks addresses #1018
1 parent 6de305a commit c4efde2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/api/composition-api.md

+3
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ The component instance context is also set during the synchronous execution of l
117117
- `errorCaptured` -> `onErrorCaptured`
118118
- `renderTracked` -> `onRenderTracked`
119119
- `renderTriggered` -> `onRenderTriggered`
120+
- `activated` -> `onActivated`
121+
- `deactivated` -> `onDeactivated`
122+
120123

121124
- **See also**: [Composition API lifecycle hooks](../guide/composition-api-lifecycle-hooks.html)
122125

src/guide/composition-api-lifecycle-hooks.md

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ The following table contains how the lifecycle hooks are invoked inside of [setu
2121
| `errorCaptured` | `onErrorCaptured` |
2222
| `renderTracked` | `onRenderTracked` |
2323
| `renderTriggered` | `onRenderTriggered` |
24+
| `activated` | `onActivated` |
25+
| `deactivated` | `onDeactivated` |
26+
2427

2528
:::tip
2629
Because `setup` is run around the `beforeCreate` and `created` lifecycle hooks, you do not need to explicitly define them. In other words, any code that would be written inside those hooks should be written directly in the `setup` function.

0 commit comments

Comments
 (0)