Execute observables sequentially, use result from first observable to call http endpoint
I have an initial 2 http requests I need to make. The first will respond with an array of numbers. Only after the first request can I make the second http request which returns void. After the second http request, I want to then use the values from the first http request and iterate through them making additional http requests for each item
How do I build an Observable like this?
I have a backend service from which I can retrieve a series of data entries (let’s say, of type DataEntry
). Each entry has a flag isCompleted
, which if set to false
, means there are more entries to come; otherwise it will be the last entry to emit.
How to complete fromEventPattern to prevent re-subscription?
I’m writing some code that uses fromEventPattern
to subscribe/unsubscribe to a third party event handler.