Skip to content

Commit 7218c69

Browse files
docs: clarify signals effect import source
1 parent 06b004e commit 7218c69

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

adev/src/content/guide/signals/effect.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ effect(() => {
88
});
99
```
1010

11+
NOTE: `effect`, `signal`, and `computed` are exported from `@angular/core`.
12+
1113
Effects always run **at least once.** When an effect runs, it tracks any signal value reads. Whenever any of these signal values change, the effect runs again. Similar to computed signals, effects keep track of their dependencies dynamically, and only track signals which were read in the most recent execution.
1214

1315
Effects always execute **asynchronously**, during the change detection process.

0 commit comments

Comments
 (0)