I'm trying to figure out what is the best way to deal with a fairly common situation in complex application environments using the Flux architecture, how to retrieve data from the server when the models that make up the data have dependencies between them. For instance:
There are the following models in the web application of the store:
- Carts (user can have several carts)
- Vendors
- Products
For each of the models there is an associated Store (CartsStore, VendorsStore, ProductStore).
Assuming there are too many products and suppliers to always be loaded, my problem arises when I want to show a list of carts.
I have a React.js component hierarchy:
CartList - , Cart, . (, , )
, , , waitFor , , . , , , .
- CartList, getState , , _onChange :

, :
1) , , 3 , , "- ", , .
2) , - , _onChange, . Flux , " ". , - .
3) - .
, , , , " " API, (CartList), 3 , , , . , , .
- ?