You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the cascade operator in many kinds of scenarios and I'm very grateful for it.
There is an issue though, when for some reason the last observable completes immediately (i.e. in a synchronous manner), the resulting cascading observable will not complete.
Hey :)
I'm not too knowledgable with this operator - but since that commit is over 2 years old, I wouldn't want to change the behavior without being positive about this.
Hi everyone,
I'm using the
cascade
operator in many kinds of scenarios and I'm very grateful for it.There is an issue though, when for some reason the last observable completes immediately (i.e. in a synchronous manner), the resulting cascading observable will not complete.
I believe that is because of the
if initialized
test when subscribing to underlying observables: https://github.com/RxSwiftCommunity/RxSwiftExt/blob/master/Source/RxSwift/cascade.swift#L57For example, if the last observable in the list is a
.just(whatever)
, the cascade will never complete.It looks like it's a regression that was introduced with commit 4ba2dd6
The following test can help understand the issue (it's red at the moment):
The text was updated successfully, but these errors were encountered: