Skip to content

Commit 88c7277

Browse files
authored
Revise beforeUpdate API entry, fixes vuejs/vue#7481 (#1395)
1 parent a49c314 commit 88c7277

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/v2/api/index.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -794,11 +794,9 @@ type: api
794794
795795
- **Details:**
796796
797-
Called when the data changes, before the virtual DOM is re-rendered and patched.
797+
Called when data changes, before the DOM is patched. This is a good place to access the existing DOM before an update, e.g. to remove manually added event listeners.
798798
799-
You can perform further state changes in this hook and they will not trigger additional re-renders.
800-
801-
**This hook is not called during server-side rendering.**
799+
**This hook is not called during server-side rendering, because only the initial render is performed server-side.**
802800
803801
- **See also:** [Lifecycle Diagram](../guide/instance.html#Lifecycle-Diagram)
804802

0 commit comments

Comments
 (0)