Skip to content

Commit 4835408

Browse files
committed
revise beforeUpdate api entry
1 parent 524a4b5 commit 4835408

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
@@ -792,11 +792,9 @@ type: api
792792
793793
- **Details:**
794794
795-
Called when the data changes, before the virtual DOM is re-rendered and patched.
795+
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.
796796
797-
You can perform further state changes in this hook and they will not trigger additional re-renders.
798-
799-
**This hook is not called during server-side rendering.**
797+
**This hook is not called during server-side rendering, because only the initial render is performed server-side.**
800798
801799
- **See also:** [Lifecycle Diagram](../guide/instance.html#Lifecycle-Diagram)
802800

0 commit comments

Comments
 (0)