Skip to content

Commit f75db8e

Browse files
fix: fixed renderTriggered example
1 parent 25aa51b commit f75db8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api/options-lifecycle-hooks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
4444

4545
Called after the instance has been mounted, where element, passed to `Vue.createApp({}).mount()` is replaced by the newly created `vm.$el`. If the root instance is mounted to an in-document element, `vm.$el` will also be in-document when `mounted` is called.
4646

47-
Note that `mounted` does **not** guarantee that all child components have also been mounted. If you want to wait until the entire view has been rendered, you can use [vm.$nextTick](../api/instance-methods.html#nexttick) inside of `mounted`:
47+
Note that `mounted` does **not** guarantee that all child components have also been mounted. If you want to wait until the entire view has been rendered, you can use [vm.\$nextTick](../api/instance-methods.html#nexttick) inside of `mounted`:
4848

4949
```js
5050
mounted() {
@@ -81,7 +81,7 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
8181

8282
The component's DOM will have been updated when this hook is called, so you can perform DOM-dependent operations here. However, in most cases you should avoid changing state inside the hook. To react to state changes, it's usually better to use a [computed property](./options-data.html#computed) or [watcher](./options-data.html#watch) instead.
8383

84-
Note that `updated` does **not** guarantee that all child components have also been re-rendered. If you want to wait until the entire view has been re-rendered, you can use [vm.$nextTick](../api/instance-methods.html#nexttick) inside of `updated`:
84+
Note that `updated` does **not** guarantee that all child components have also been re-rendered. If you want to wait until the entire view has been re-rendered, you can use [vm.\$nextTick](../api/instance-methods.html#nexttick) inside of `updated`:
8585

8686
```js
8787
updated() {
@@ -238,7 +238,7 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
238238
cart: 0
239239
}
240240
},
241-
renderTracked({ key, target, type }) {
241+
renderTriggered({ key, target, type }) {
242242
console.log({ key, target, type })
243243
},
244244
methods: {

0 commit comments

Comments
 (0)