In my application, inside the componentDidMount(), I want to dispatch an action, which has 2 API calls. In angular, with observables, we can use forkJoin() to achieve this. In react / react-native, do we have a similar method to forkJoin()? If now, what will be a good practice to call 2 API endpoints?
-
Which library are you using to handle your async actions?dentemm– dentemm2018-06-03 17:15:55 +00:00Commented Jun 3, 2018 at 17:15
-
Looks like you are looking for something like in this post https://stackoverflow.com/questions/38866262/several-requests-on-componentdidmountnithinmohantk– nithinmohantk2018-06-03 18:42:08 +00:00Commented Jun 3, 2018 at 18:42
Add a comment
|