`debounceTime` emit right away when they reach the end of the observable they are debouncing
Nobody has claimed this yet.
- 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
- REPL or Repo link:
(https://rxviz.com/v/1o7AgWPJ)
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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