| I think the most bad rep for RxJS comes from using it when it is not needed. Parent comment said: > But the problems they solve are also unintuitive. Do you consider calling a JSON API unintuitive or complex? If not, then you may be using the wrong tool. If you need nothing else, you are perfectly fine using a promise. If you need to await extra requests, transform them, and react to other events then you need RxJS. For a simple call, you do not. > I would imagine most people’s use case (mine certainly is) for RxJS boils down to “call a JSON API and receive a response”. That shouldn’t be a hard problem Do you consider the following code hard to understand or are you are making requests in a more complex way? ```
this.network.get('<url>').subscribe(response => <do whatever you want here>)
``` Even if we agree to disagree that the above code snippet is hard to understand, you can just convert it to a promise: ```
const response = await lastValueFrom(this.network.get('<url>'))
``` |