-
Notifications
You must be signed in to change notification settings - Fork 214
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
merge(with:)
breaks RxSwift's merge()
#238
Comments
Hey, this definitely doesn't seem like an issue with the framework as these two methods have entirely different signatures. @jdisho could you take a look at his example perhaps? |
Thanks for pointing it out. I will have a look asap 😊 |
Hey @jdisho - can you let me know if you'll be able to take a look in the next day or two? No problem if not, but I want to know since otherwise I'll just carve out some time to look into it :) |
We can either rename to Any other suggestion? |
the former isn't great because we already have zip(with:) |
+1 to the idea of using an array. 😇 |
Cool, @cliss - any way for you to confirm that changing the method to use an array would solve the ambiguity for your code base ? I'll try taking a look myself tomorrow or so and push a PR. |
Point me to a branch and I'm happy to give it a shot! |
Hey @cliss - it's on the |
It definitely solves issues I was having with merge. |
Crap, I'm so sorry; just saw this. Will test first thing tomorrow morning. My utmost apologies! |
Merged it, will be out in a new release by next week most likely :) |
@freak4pc bump 😇 |
Oh yikes! Thought I took care of this since I merged it 🤦♂ |
@cliss and others - 5.2.0 was just released 🎉 |
Thanks @freak4pc! 🍻 |
Hi, I've stumbled upon an issue where importing RxSwiftExt breaks behavior of
Observable.of(...).merge()
.Given the following sample code:
Now, depending on whether I
import RxSwiftExt
or not produces drastically different result.First, output without RxSwiftExt, everything works as expected:
Next, if I
import RxSwiftExt
, result is something completely unexpected. I get event completed and whole thing disposed at the end:In fact, if I step into
merge()
when RxSwiftExt is imported, it actually goes insidemerge(with:)
method.I can reliably reproduce this with RxSwift 5.0.1 and RxSwiftExt 5.1.1, both built with Carthage using Xcode 10 (10G8) and Xcode 11 GM 2 (11A491c).
Is this expected behavior or am I doing something wrong here?
I'm attaching a sample project I used to pinpoint the issue, please run
carthage bootstrap
to install RxSwift and RxSwiftExt.merge-issue.zip
The text was updated successfully, but these errors were encountered: