Hello, does anyone have an idea how to accomplish ...
# rx
m
Hello, does anyone have an idea how to accomplish reply only if changed behavior? I would like to have something like this:
Copy code
val replayedObservable = someOperation.replay(1)
    replayedObservable.connect();
    val subscription1 = replayedObservable.subscribe { //here i got some value }
    subscription1.unsubscribe()
    val subscription2 = replayedObservable.subscribe { //here I want to get some value only if it’s different than before }
replay(1).distinctUntilChanged()
doesn’t work because I’m unsubscribing and
distinctUntilChanged()
operator doesn’t remember values between subscriptions.