Skip to content

Commit 47c5a22

Browse files
committed
Docs change, as per code review request
1 parent e99beb9 commit 47c5a22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/guide/reactivity.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ The following app will display any color you type in to the input. Try it with a
196196

197197
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.
198198

199-
!! warning
199+
### When are watch methods called?
200200

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`.
204204

205205
## Compute methods
206206

0 commit comments

Comments
 (0)