How to eliminate multiple levels of `subscribe().with()`
See original GitHub issueI have some async logic like this:
However I don’t want to deal with each level of errs
, is there anyway to flatten above nested block and just deal with all the exceptions in one level?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
how to avoid nested subscribe more than two levels
1 Answer 1 ... There are a few options but as I see you need that structure because you need data from the...
Read more >6 Ways to Unsubscribe from Observables in Angular
1. Use the unsubscribe method ... A Subscription essentially just has an unsubscribe() function to release resources or cancel Observable ...
Read more >how to overcome multiple levels of relationship expansion?
Solved: I have A CDS entity "Member Agency Contact List," which stores the autonumbers of the related entity "Member Contacts,"
Read more >Lessons from building large Angular apps: Managing ...
The classic approach is to add property with its type set to Subscription , initialise subscription in ngOnInit method, and unsubscribe in ...
Read more >Unsubscribing in Angular, the right way | by Ashwin Sathian
Method 1: The Manual Way using unsubscribe() ... Now imagine that your component has many such subscriptions, it can quickly become ... By...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@cescoffier I further modified my function with the learned knowledge:
So all the calling methods are simplified:
Thanks for teaching!
Should we close this issue?