Skip to content

buffer operator emits value on closingNotifier complete #7528

Open
@kkachniarz220

Description

@kkachniarz220

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions