mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: correct Signals documentation (#50518)
Remove "only" word from "Reading without tracking dependencies" effect explanation PR Close #50518
This commit is contained in:
committed by
Dylan Hunn
parent
72b4ff4b9e
commit
7e468dffce
@@ -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`:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user