RxJS · interval / map / filter
Live ticking counter using interval(), map(), and filter() with proper subscription cleanup.
Operator Pipeline
interval(1000)→Emits 0, 1, 2, 3… every 1s
map(x => x * 2)→Doubles each value: 0, 2, 4, 6…
filter(x => x % 4 === 0)→Keeps only multiples of 4: 0, 4, 8, 12…
Live Output
Current Value
0
Stopped
Subscription status: Inactive (unsubscribed)
Emission Log (last 10)
No emissions yet — click Start
Subscription Cleanup Verification
Uses
takeUntilDestroyed() for automatic cleanup on component destroyManual
unsubscribe() on Stop/Reset via SubscriptionNo memory leaks — verified via
DestroyRefRxJS · Search with Filters
Live search using combineLatest() + switchMap() — debounced text input + category filter, cancelling in-flight requests when new values arrive.
| ID | Title | Status | Created At |
|---|---|---|---|
| No tasks match your search. | |||
Showing 0 tasks
Pipeline
searchQuery$→debounceTime(300)→distinctUntilChanged()
searchCategory$→(no debounce)
combineLatest([query, category])→Emits when either changes
switchMap(fetch & filter)→Cancels previous, runs latest