What is the proper way to make an async request for form drop down options?
Have a large amount of drop down options, say cities for sake of example. Do we want these stored in state?
Normally we would create Redux action making request for "cities" and update state with "cities" options via Redux store. MapDispatchToProps and call Redux action from componentDidMount.
componentDidMount = () => {
this.props.fetchCitiesOptions()
}
MapStateToProps would include options: cities
which could be 1000 cities or more and only in use on 1 form. Do we want to carry this in global state? If not, what is the better way? Learning. Thanks.