mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Using an `effect` inside a `computed` is a clear violation of the conceptual idea of computed's being pure/ side-effect free. Additionally, scheduling new effects from an existing actively running effect is likely unintended as this could degrage application performance or result in unintentional behaviors. Multiple long-living effects would be scheduled every time the effect expressions runs. For these reasons, we are explicitly preventing this pitfal, by disallowing using `effect` inside reactive contexts. PR Close #52138 |
||
|---|---|---|
| .. | ||
| api.ts | ||
| asserts.ts | ||
| computed.ts | ||
| effect.ts | ||
| signal.ts | ||
| untracked.ts | ||