Skip to content

Commit af9154b

Browse files
chrisvfritzJinjiang
authored andcommitted
Revise beforeUpdate API entry, fixes vuejs/vue#7481 (#1395)
1 parent b3de599 commit af9154b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/v2/api/index.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -789,11 +789,9 @@ type: api
789789
790790
- **详细**:
791791
792-
数据更新时调用,发生在虚拟 DOM 重新渲染和打补丁之前
792+
数据更新时调用,发生在虚拟 DOM 打补丁之前。这里适合在更新之前访问现有的 DOM,比如手动移除已添加的事件监听器
793793
794-
你可以在这个钩子中进一步地更改状态,这不会触发附加的重渲染过程。
795-
796-
**该钩子在服务器端渲染期间不被调用。**
794+
**该钩子在服务器端渲染期间不被调用,因为只有初次渲染会在服务端进行。**
797795
798796
- **参考**:[生命周期图示](../guide/instance.html#生命周期图示)
799797

0 commit comments

Comments
 (0)