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): Don't mutate array of observables passed to combineLatest #2276

Merged
merged 1 commit into from
Jan 13, 2017
Merged

Conversation

extremeandy
Copy link
Contributor

Description:

combineLatest was mutating the array of observables passed to it. This is a very simple fix to clone the array before modifying it.

See this codepen for example of the problem: https://codepen.io/anon/pen/qRNBVJ?editors=1111

combineLatest

lease enter the commit message for your changes. Lines starting
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling f6bb9ca on extremeandy:master into ** on ReactiveX:master**.

@benlesh
Copy link
Member

benlesh commented Jan 13, 2017

@extremeandy ... good catch. This looks like a side-effect from the time we added the ability to do both combineLatest(a, b, c) and combineLatest([a, b, c]) (originally it was just the former, which used rest arguments).

LGTM! 👍

@benlesh benlesh merged commit 9b73c46 into ReactiveX:master Jan 13, 2017
@lock
Copy link

lock bot commented Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants