Hacker News new | past | comments | ask | show | jobs | submit login

What's concerning is that when people use Observables, 90% of the time you need to break out of them again.

Subscribe, (value) => currentValue = value, do some calculation, onDestroy unsubscribe..

I don't know whether people really solve complex problems or whether they just appear complex when you use RxJS.




Have you tried `async` pipe and `takeUntilDestroyed`? I only ever `subscribe` if I need to trigger side effects, like setting a form validator based or a value (probably can be replaced by async validators) or modify DOM outside of the app root.


Yes, but the problem with the async pipe is that you're pulling logic into the template.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: