Observables, Side-effects, and Subscriptions

added by JavaScript Kicks
1/15/2019 8:54:49 AM

229 Views

My previous articles on using AsyncPipe and data refresh patterns in Angular hint at some common anti-patterns dealing with Observables. If there's any common thread in my advice, it is: delay unpacking an Observable into its scalar types when performing logic you can rewrite as side-effect-free, leaving code with side-effects for subscription callbacks and other downstream logic.


0 comments