3 ms·
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
by knallfrosch 3y ago
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.
- Klaster_1 3y agoHave 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.
- knallfrosch 3y agoYes, but the problem with the async pipe is that you're pulling logic into the template.