From 7e468dffcec403ecd69a940a4c81cf617b73ceb6 Mon Sep 17 00:00:00 2001 From: Julian Andres Gomez Gomez Date: Tue, 30 May 2023 09:40:36 -0500 Subject: [PATCH] docs: correct Signals documentation (#50518) Remove "only" word from "Reading without tracking dependencies" effect explanation PR Close #50518 --- aio/content/guide/signals.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/guide/signals.md b/aio/content/guide/signals.md index 7d4aa7a5a48..afac47ca4bc 100644 --- a/aio/content/guide/signals.md +++ b/aio/content/guide/signals.md @@ -223,7 +223,7 @@ effect(() => { }); ``` -This example logs a message when _either_ `currentUser` or `counter` changes. However, if the effect should only run only when `currentUser` changes, then the read of `counter` is only incidental and changes to `counter` shouldn't log a new message. +This example logs a message when _either_ `currentUser` or `counter` changes. However, if the effect should only run when `currentUser` changes, then the read of `counter` is only incidental and changes to `counter` shouldn't log a new message. You can prevent a signal read from being tracked by calling its getter with `untracked`: