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: docs/guide/reactivity.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -196,11 +196,11 @@ The following app will display any color you type in to the input. Try it with a
196
196
197
197
The color is parsed in `on_input_submitted` and assigned to `self.color`. Because `color` is reactive, Textual also calls `watch_color` with the old and new values.
198
198
199
-
!! warning
199
+
### When are watch methods called?
200
200
201
-
Textual only calls watch methods if the value of a reactive attribute changes.
202
-
If the newly assigned value is the same as the previous value, the watch method is not called.
203
-
You can override this behaviour by passing `always_update=True`.
201
+
Textual only calls watch methods if the value of a reactive attribute _changes_.
202
+
If the newly assigned value is the same as the previous value, the watch method is not called.
203
+
You can override this behaviour by passing `always_update=True` to `reactive`.
0 commit comments