imagine you have `Observable<Int>` backed by...
# rx
z
imagine you have
Observable<Int>
backed by
.replayingShare()
. Let’s pretend it generates a random
Int
every second. 1. last emission is
50
2. unsubscribe (0 subscribers) 3. resubscribe (1 subscriber) The subscriber on number 3 would receive
50
as the first emission. It’s effectively receiving a cached value from a previous subscription. If you simply want
.share()
behavior but you want to replay the latest emission to subscribers #2 or #3, I believe
.replay(1).refCount()
will do the trick