I have a Subject
observable representing the result of the network request that needs to be delivered to multiple subscribers.
I can use ReplaySubject
of buffer 1 and publish()
method. However, the network request gets executed only once.
I'd like to trigger the fetch event at any give point in the future. How can I trigger a new requst?
Currently, I have a Service
object that holds the ReplaySubject
and has a method reload()
which triggers the network request and publishes the result to the aReplaySubject
.
Is there any method on Observable
that can "refresh" it and deliver a new value to all the current subscribers?