Angular · Senior · Question 68 of 75
When does effect beat computed, and when is it a smell?
- ✓Correct answer: Effects fit side effects outside the reactive graph (logging,
localStorage, imperative APIs); using them to set other signals is a smell - 2Effects are always preferred because they run earlier
- 3
computedcan't read more than one signal
Explanation
Derived values should be computed or linkedSignal, which stay consistent and lazy; effects writing signals cause extra cycles.