ReactiveX / ReactiveX/rxjs

`debounceTime` emit right away when they reach the end of the observable they are debouncing

Open
#4,660 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

docs
Dominant language
TypeScript
Stars
31.7k
Forks
3k
PR merge metrics
No merged PRs in 30d

Description

Bug Report

Current Behavior
debounce and debounceTime emit right away when they reach the end of the observable they are debouncing as described in https://stackoverflow.com/a/55248103/5692151. This behavior is not described in the doc https://rxjs-dev.firebaseapp.com/api/operators/debounceTime

Reproduction

Expected behavior
If I understand correctly what the doc says, the observable should be emiited after a duration dueTime but not immediately.

Environment

  • Runtime: Chrome 72
  • RxJS version: Rxjs 6.2.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked rxviz reproduction and the debounce/debounceTime API documentation, then inspect the observable completion behavior described in the report. Confirm whether the documented dueTime semantics match the current emission timing and define the expected behavior for both operators before locating the relevant RxJS tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.