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

fix(buffer): subscribe to the closing notifier before the source #7185

Merged

Conversation

jakovljevic-mladen
Copy link
Member

Description:
Per RxJS Core Semantics guide:

"Notifiers" provided directly to the operator MUST be subscribed to before the source is subscribed to.

This PR fixes this issue in buffer operator. Since there was a test related to this, I adjusted it so that it works with the new setup.

Also, one note: since we waited with similar bug for v8 in #7152, I think this should not be cherry picked to v7 branch.

Related issue (if exists):
None, only this comment.

@benlesh
Copy link
Member

benlesh commented Feb 19, 2023

Looks correct at a glance. We'll just need to resolve the merge conflicts.

@jakovljevic-mladen
Copy link
Member Author

Merge conflicts are prevailing these days 😃

@benlesh benlesh merged commit f37be62 into ReactiveX:master Mar 6, 2023
@jakovljevic-mladen jakovljevic-mladen deleted the fix_buffer_subscriptions branch March 9, 2023 07:53
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

Successfully merging this pull request may close these issues.

None yet

2 participants