Hi guys. Have you ever tried to return a shared (m...
# rx
g
Hi guys. Have you ever tried to return a shared (multicast) observable from a function? E.g.
mySharedObservable().subscribe()
The problem is that it no longer works as multicast. Because when we call such function multiple times, its body is evaluated each time, so effectively a new Observable is created. Did anyone faced similar problem? Any thoughts?