juniorReactive Programming
Why do we unsubscribe?
Updated May 6, 2026
Short answer
To prevent memory leaks and unnecessary execution.
Deep explanation
Active subscriptions keep resources alive unless explicitly cleaned.
Real-world example
Stopping live UI event listeners.
Common mistakes
- Ignoring cleanup in components.
Follow-up questions
- What is auto-unsubscribe?
- When is it not needed?