Skip to content

Revise beforeUpdate API entry, fixes vuejs/vue#7481 #1395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/v2/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -794,11 +794,9 @@ type: api

- **Details:**

Called when the data changes, before the virtual DOM is re-rendered and patched.
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.

You can perform further state changes in this hook and they will not trigger additional re-renders.

**This hook is not called during server-side rendering.**
**This hook is not called during server-side rendering, because only the initial render is performed server-side.**

- **See also:** [Lifecycle Diagram](../guide/instance.html#Lifecycle-Diagram)

Expand Down