You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/v2/guide/custom-directive.md
+2
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,8 @@ A directive definition object can provide several hook functions (all optional):
66
66
67
67
-`update`: called after the containing component's VNode has updated, __but possibly before its children have updated__. The directive's value may or may not have changed, but you can skip unnecessary updates by comparing the binding's current and old values (see below on hook arguments).
68
68
69
+
<pclass="tip">We'll cover VNodes in more detail [later](./render-function.html#The-Virtual-DOM), when we discuss [render functions](./render-function.html).</p>
70
+
69
71
-`componentUpdated`: called after the containing component's VNode __and the VNodes of its children__ have updated.
70
72
71
73
-`unbind`: called only once, when the directive is unbound from the element.
0 commit comments