mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: correct Signals documentation (#50518)
Remove "only" word from "Reading without tracking dependencies" effect explanation PR Close #50518
This commit is contained in:
parent
72b4ff4b9e
commit
7e468dffce
1 changed files with 1 additions and 1 deletions
|
|
@ -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`:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue