Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buffer operator emits value on closingNotifier complete #7528

Open
kkachniarz220 opened this issue Jan 22, 2025 · 0 comments
Open

buffer operator emits value on closingNotifier complete #7528

kkachniarz220 opened this issue Jan 22, 2025 · 0 comments

Comments

@kkachniarz220
Copy link

Describe the bug

The buffer operator emits the empty value on closingNotifier completes.

Expected behavior

No value emitted on closingNotifier completes.

Reproduction code

import { fromEvent, interval, buffer, takeUntil, debounceTime } from 'rxjs';

const addItem = fromEvent(document, 'click').pipe(takeUntil(interval(5000)));

const debounce = addItem.pipe(debounceTime(500));
addItem.pipe(buffer(debounce)).subscribe((d) => console.log(d));

Reproduction URL

https://stackblitz.com/edit/rwbsk1a8?devtoolsheight=50&file=index.ts

Version

7.8.1

Environment

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant