title: Update antd form if initialValue is changed
body: <p>I'm passing currentUser data from my Redux-saga into antd form, Name, email, phone number, introduction are passed to the form as initialvalue,  what i want to do is i want to submit the form as a put request to db if the initialvalue has been changed..
  here is my code</p>
  
  <pre><code>import React  from 'react';
  import {createStructuredSelector} from 'reselect';
  import { connect } from 'react-redux';
  import { selectCurrentUser } from '../../redux/user/user.selector';
  
  
  
  import { Form, Input, Button } from 'antd';
  
  import './profile_form.styles.css'
  
  /* eslint-disable no-template-curly-in-string */
  const ProfileForm = ({currentUser}) =&gt; {
    const {name, email} = currentUser
  
  
    const onFinish = values =&gt; {
      console.log(values);
    };
  
    const layout = {
      labelCol: {
        span: 7,
      },
      wrapperCol: {
        span: 15,
      },
    };
  
  
    return (
      &lt;Form className='profile-form' {...layout} 
      onFinish={onFinish}  
      initialValues={{ firstname: name, lastname: name, email: email }} 
      &gt;
        &lt;Form.Item
          name='firstname'
          label="First Name"
        &gt;
          &lt;Input  /&gt;
        &lt;/Form.Item&gt; 
         &lt;Form.Item
          name= 'lastname'
          label="Last Name"
        &gt;
          &lt;Input  value={name}/&gt;
        &lt;/Form.Item&gt;
        &lt;Form.Item
          name='email'
          label="Email"
  
        &gt;
          &lt;Input value={email} /&gt;
        &lt;/Form.Item&gt;
        &lt;Form.Item name= 'phonenumber' label="Phone Number"
        &gt;
          &lt;Input /&gt;
        &lt;/Form.Item&gt;
        &lt;Form.Item name='introduction' label="Introduction"
        &gt;
          &lt;Input.TextArea /&gt;
        &lt;/Form.Item&gt;
        &lt;Form.Item wrapperCol={{ ...layout.wrapperCol, offset: 8 }}&gt;
          &lt;Button type="primary" htmlType="submit"&gt;
            Submit
          &lt;/Button&gt;
        &lt;/Form.Item&gt;
      &lt;/Form&gt;
    );
  };
  
  const mapStateToProps = createStructuredSelector({
    currentUser:selectCurrentUser
  })  
  
  export default connect(mapStateToProps) (ProfileForm);
  </code></pre>
  
  <p>i found "onValuesChange" in antd api but have no idea how it's to be used.</p>