I want to change deep fields in redux-form with this.props.change in redux-form V6.
Here are my mapStateToProps:
function mapStateToProps(state) {
const {recipient_type, filters} =
formValueSelector('form_wizard')(
state, 'filters.recipient_type' ,'filters');
return {
recipient_type,
filters
}
}
and here is my componentDidMount (where I want to change deep field programmatically)
componentDidMount() {
if (!this.props.recipient_type) {
this.props.change("filters.recipient_type}", someThing);
}
}
The result for this.props.recipient_type is undefined.
Question:
How can I change the deep field with this.props.change() in redux-form?
Thanks