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.


i agree with @pierrepinard_2.

using 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