From f79cf5d9afbb4636081db86f279a95ef6b563341 Mon Sep 17 00:00:00 2001 From: Kushal Billaiya Date: Fri, 14 May 2021 18:01:01 +0530 Subject: [PATCH 1/2] Add onActivated and onDeactivated to the list addresses vuejs#1018 --- src/guide/composition-api-lifecycle-hooks.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/guide/composition-api-lifecycle-hooks.md b/src/guide/composition-api-lifecycle-hooks.md index 1fbd0ed00a..9745620b24 100644 --- a/src/guide/composition-api-lifecycle-hooks.md +++ b/src/guide/composition-api-lifecycle-hooks.md @@ -21,6 +21,9 @@ The following table contains how the lifecycle hooks are invoked inside of [setu | `errorCaptured` | `onErrorCaptured` | | `renderTracked` | `onRenderTracked` | | `renderTriggered` | `onRenderTriggered` | +| `activated` | `onActivated` | +| `deactivated` | `onDeactivated` | + :::tip 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. From 1fad9ca9020891d0e9a8a4030648926f48d04fcf Mon Sep 17 00:00:00 2001 From: Kushal Billaiya Date: Fri, 14 May 2021 18:02:51 +0530 Subject: [PATCH 2/2] Add onActivated and onDeactivated hooks addresses vuejs#1018 --- src/api/composition-api.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api/composition-api.md b/src/api/composition-api.md index a770a3731d..4f518614b9 100644 --- a/src/api/composition-api.md +++ b/src/api/composition-api.md @@ -117,6 +117,9 @@ The component instance context is also set during the synchronous execution of l - `errorCaptured` -> `onErrorCaptured` - `renderTracked` -> `onRenderTracked` - `renderTriggered` -> `onRenderTriggered` + - `activated` -> `onActivated` + - `deactivated` -> `onDeactivated` + - **See also**: [Composition API lifecycle hooks](../guide/composition-api-lifecycle-hooks.html)