DEV Community

Discussion on: Angular - Zoned Out !

suvi profile image
Suvendu Karmakar Author • Edited on

That's just one extra line of code inside each subscribe or then (100 repetitive lines of code for 100 responses , and I haven't even counted calls which are merged into one observable, what if I want to track each one seperately, like I want to show a different message for each call ), defeats the purpose of the whole post. Sorry but I don't see a solution here .

Thread Thread
jwp profile image
John Peters

All work can be refactored ro just one function which sends the request, subscribes and posts a completion message.