Documentation Index
Fetch the complete documentation index at: https://resources.devweekends.com/llms.txt
Use this file to discover all available pages before exploring further.
Module Overview
- Observable creation and subscription
- Transformation, filtering, and combination operators
- Subjects and multicasting
- Error handling and recovery
- Testing observables
- Performance optimization
Observable Fundamentals
Creating Observables
Transformation Operators
Flattening Operators Comparison
Filtering Operators
Debounce vs Throttle
Combination Operators
Subjects
Subjects are both Observable and Observer — they can emit values and be subscribed to. Think of a regular Observable like a recorded podcast (each listener hears the same thing from the beginning), while a Subject is like a live radio broadcast (listeners only hear what is broadcast after they tune in). Understanding which Subject to use is critical for state management:State Management with BehaviorSubject
Error Handling
Multicasting
Share a single subscription among multiple subscribers:Custom Operators
Real-World Patterns
Polling with Pause
Typeahead Search
Race Condition Prevention
Practice Exercise
Exercise: Build a Live Dashboard
- Polls multiple APIs every 30 seconds
- Combines data from all sources
- Pauses polling when tab is hidden
- Shows connection status
- Has retry with exponential backoff
Solution
Solution
Summary
Interview Deep-Dive
Q: Explain the difference between combineLatest and forkJoin. You have a dashboard that needs data from three APIs -- when would you use each?
Q: Explain the difference between combineLatest and forkJoin. You have a dashboard that needs data from three APIs -- when would you use each?
Q: You have a memory leak in production -- the app gets slower over time and eventually crashes. You suspect RxJS subscriptions are not being cleaned up. How do you find and fix the leaks?
Q: You have a memory leak in production -- the app gets slower over time and eventually crashes. You suspect RxJS subscriptions are not being cleaned up. How do you find and fix the leaks?
Q: Design a typeahead search component that handles all the edge cases -- debouncing, minimum query length, cancellation of stale requests, error recovery, and empty state. Walk through the RxJS pipeline.
Q: Design a typeahead search component that handles all the edge cases -- debouncing, minimum query length, cancellation of stale requests, error recovery, and empty state. Walk through the RxJS pipeline.