Tim Deschryver

Multiple service calls from an Effect

Tim Deschryver

Multiple service calls from an Effect link

Use case link

An action to fetch multiple entities at once, but the service has only an endpoint to fetch one entity at a time.

Solution link

Use the RxJS merge operator to flatten all request streams and concurrently emit all values to a single output stream.

Follow me

You can find me on Twitter, LinkedIn, and GitHub.

Support me

I appreciate it if you would support me if have you enjoyed this post and found it useful, thank you in advance.

Buy Me a Coffee at ko-fi.com PayPal logo
Support the blog Share on Twitter Discuss on Twitter Edit on GitHub