I have a redux-form connected to my application state and everything seems to work great. I can fetch data and load it into my form, then submit data and get the metadata I
You can use react-redux's mapDispatchToProps
together with the change action creator in order to achieve what you want:
import { Component } from "react";
import { connect } from "react-redux';
import { change } from "redux-form";
class ColorSelect extends Component {
// ...other stuff in this class...
renderColor (color) {
const { selectColor } = this.props;
return <li key={color}><a onClick={() => selectColor(color)}></a></li>;
}
}
export default connect(null, {
selectColor: color => change( "yourFormName", "yourFieldName", color )
})(ColorSelect)