Skip to content

Commit b525c69

Browse files
committed
Add onActivated and onDeacitvated hooks to the list
vuejs/docs@c4efde2
1 parent 37e0109 commit b525c69

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
@@ -22,6 +22,9 @@
2222
| `errorCaptured` | `onErrorCaptured` |
2323
| `renderTracked` | `onRenderTracked` |
2424
| `renderTriggered` | `onRenderTriggered` |
25+
| `activated` | `onActivated` |
26+
| `deactivated` | `onDeactivated` |
27+
2528

2629
:::tip
2730
`setup``beforeCreate``created` のライフサイクルで実行されるため、これらのフックを明示的に定義する必要はありません。言い換えれば、これらのフック内のコードは、 `setup` 内に直接書くべきです。

0 commit comments

Comments
 (0)