Skip to content

Commit 870ac43

Browse files
authored
Update composition-api-lifecycle.md (vuejs#2372)
Add more context about how multiple state changes can be included in a single update. I remember reading something like this on the Vue 2 doc, and that helped me understand this section of the doc which before I remembered this fact I got a little confused.
1 parent d4d437f commit 870ac43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/composition-api-lifecycle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Registers a callback to be called after the component has updated its DOM tree d
6060

6161
A parent component's updated hook is called after that of its child components.
6262

63-
This hook is called after any DOM update of the component, which can be caused by different state changes. If you need to access the updated DOM after a specific state change, use [nextTick()](/api/general#nexttick) instead.
63+
This hook is called after any DOM update of the component, which can be caused by different state changes, because multiple state changes can be batched into a single render cycle for performance reasons. If you need to access the updated DOM after a specific state change, use [nextTick()](/api/general#nexttick) instead.
6464

6565
**This hook is not called during server-side rendering.**
6666

0 commit comments

Comments
 (0)