score:3

Accepted answer

You use Promise.all() in your fetchData() method: your actions are dispatched in parallel, not one after another.

To ensure that you call first destination then properties, you should create one specific async action creator for your Search component. This async action creator would implement the successive requests you need in this case.

score:0

I agree with @pierrepinard_2.

Using promise.map from bluebird, you should be able to call all given promise syncronously.

This post on stack overflow should help you on that matter.

Let us know if it works


Related Query

More Query from same tag