I'm learning React and flux.
Say there's a route like
// Route
/continent/:continentId/countries
// Example
/continent/europe/countries
There are two stores, a ContinentsStore and a CountriesStore
What's the best design pattern, in Flux, so that when the route is loaded, the ContinentsStore asynchronously fetches a list of all the continents, sets the current one to Europe, and then CountriesStore looks for the current continent in ContinentsStore, then proceeds to download a list of all the countries in that Continent.
Specifically, where are the action creators, and what might the actions types be?
Thanks.