docs: correct Signals documentation (#50518)

Remove "only" word from "Reading without tracking dependencies" effect explanation

PR Close #50518
This commit is contained in:
Julian Andres Gomez Gomez 2023-05-30 09:40:36 -05:00 committed by Dylan Hunn
parent 72b4ff4b9e
commit 7e468dffce

View file

@ -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`: