alexsullivan114
02/18/2020, 2:41 PMshare and buffer to get that behavior, but I'd honestly just go the behavior subject route.iex
02/18/2020, 2:45 PMiex
02/18/2020, 2:46 PMalexsullivan114
02/18/2020, 3:08 PMalexsullivan114
02/18/2020, 3:08 PMshare + buffer route (and I'm not sure that would actually work) will be more verbose and require more cognitive load to reason throughalexsullivan114
02/18/2020, 3:08 PMalexsullivan114
02/18/2020, 3:09 PMshare + replay is probably what you actually want if you're going the observable routeZach Klippenstein (he/him) [MOD]
02/18/2020, 4:49 PMshare probably doesn't make sense with replay, they're both multicasting operators (share is just publish().refCount()). You want just replay(1) and then either refCount, autoConnect, or to just call connect yourself on the returned ConnectableObservable.iex
02/18/2020, 9:09 PMtrevjones
02/19/2020, 7:20 PM