Is there a solution to diamond problem in combineLatest in rxjava? (when source observables of the combineLatest are driven by common observable -- you get unexpected results since first source will emit first, therefore paired with previous value of second source)
r
russhwolf
12/14/2018, 7:48 PM
If your sources both emit exactly once for each emission of the common upstream, you can use
zip
instead of
combineLatest
u
ursus
12/14/2018, 11:36 PM
yea unfortunately zip wont do
ursus
12/14/2018, 11:42 PM
ive posted the use case in chanell
a
andrewg
12/17/2018, 2:19 AM
CombineLatest alone is not going to work.
Consider using switchMap
u
ursus
12/17/2018, 4:47 AM
yea but neither will switchmap because reasons, but thanks