Skip to content

Commit 8bcbf5c

Browse files
committed
revise beforeUpdate api entry
1 parent 4ad162d commit 8bcbf5c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: src/v2/api/index.md

+2-4
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)