score:0

Hi first replace the input tag with the commented out field component itself then set these flags in reduxform

const withReduxForm = reduxForm({
 form: 'companyForm',
 fields: requiredFields,
 validate,
 destroyOnUnmount: false,
 enableReinitialize: true,
 keepDirtyOnReinitialize: true
});

as well as pass the initialValues props to the form container with the server response

{
  company_name: 'response value from server'
}

score:0

Hi checkout this fiddle link for initialValues example. For your example with reducer

  const mapStateToProps = state => ({ 
   getCompany: state.profile.companyReducer, 
   initialValues: state.profile.[your reducer object] });

Related Query

More Query from same tag