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(combineLatest): Ensure EMPTY is returned if no observables are … #5963

Conversation

benlesh
Copy link
Member

@benlesh benlesh commented Jan 18, 2021

…passed.

This resolves an issue found by testing Angular router. There was code that expected this behavior (rightfully so), and it was broken during a refactor in v7.

@benlesh benlesh requested a review from cartant January 18, 2021 00:07
Copy link
Collaborator

@cartant cartant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Do any other operators - like zip - have this issue or lack tests like these?

@benlesh
Copy link
Member Author

benlesh commented Jan 18, 2021

@cartant that's worth a look. The issue I found was code that was like combineLatest(arrObservablesBuiltElsewhere).

Either way, this PR solve's Angular's issue.

…passed.

This resolves an issue found by testing Angular router. There was code that expected this behavior (rightfully so), and it was broken during a refactor in v7.

Resolves ReactiveX#5962
@benlesh benlesh force-pushed the fix/issue-5962-combineLatest-return-EMPTY-on-empty-array branch from 2278a21 to bcf8f8d Compare January 18, 2021 00:17
@benlesh benlesh merged commit 157c7e8 into ReactiveX:master Jan 18, 2021
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.

2 participants