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 destroy
Manual unsubscribe() on Stop/Reset via Subscription
No memory leaks — verified via DestroyRef

RxJS · Search with Filters

Live search using combineLatest() + switchMap() — debounced text input + category filter, cancelling in-flight requests when new values arrive.

IDTitleStatusCreated 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

HTTP Request Log

0 pending | 0 ok | 0 error
No HTTP requests logged yet