From 45e5658aeade8e2a1bc9c2d29dbf12a6de7ac3ca Mon Sep 17 00:00:00 2001 From: darrenburns Date: Mon, 17 Oct 2022 15:48:16 +0100 Subject: [PATCH] Mention ordering of superpower methods in docs (#935) --- docs/guide/reactivity.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/guide/reactivity.md b/docs/guide/reactivity.md index 86a7d7d90..b4c0bdebc 100644 --- a/docs/guide/reactivity.md +++ b/docs/guide/reactivity.md @@ -226,4 +226,8 @@ When the result of `compute_color` changes, Textual will also call `watch_color` !!! note - It is best to avoid doing anything slow or cpu-intensive in a compute method. Textual calls compute methods on an object when _any_ reactive attribute changes. + Textual will first attempt to call the compute method for a reactive attribute, followed by the validate method, and finally the watch method. + +!!! note + + It is best to avoid doing anything slow or CPU-intensive in a compute method. Textual calls compute methods on an object when _any_ reactive attribute changes.