Skip to content

Tag: rxjs

await operator is being skipped

Could you please help me with an issue I am facing? I have attached my code below, after button click, it catches an error (if there is) but skips Which means it just jumps to catch (e). I need it to reload my grid first. Thank you for any advise. Answer If it skips over your code like that, chances

avoid nested subscribe if there is a forkjoin inside

Here is my code in angular So there are many levels of subscribe. Not only it is ugly also the result is wrong and I can’t not find it out by debugging. How can I rewrite it with rxjs operators? Answer You can simplify it using the RxJS operators, like the following: Note: To handle the memory leaks, it…

RxJS – Processing HTTPrequests in sequence

I’m currently trying to process HTTP Post requests in sequence, additionally trying to repeat each failed request until it succeeds (that is a requirement) and then and only then to continue with processing other requests. My code looks like this for now (it not working as it should, retryWhen is not us…