title: formik access initialValues in onSubmit handler for comparison with values
body: <p>I have an edit form which uses Formik. I need to upload a new image if the picture string has changed. I need to compare the <strong>initialValues</strong> of the picture field vs the <strong>values</strong> of the picture field to determine whether to call the fileUpload function to upload a picture and return the string uri</p>
  
  <p>How can i access the initialValues in my onSubmit handler in order to do this comparison. I have been searching online and found an <a href="https://medium.com/@MelkorNemesis/how-to-check-if-formik-values-have-changed-on-submit-2c6ee89992ec" rel="nofollow noreferrer">article</a> on this topic, however, the author is using redux and recompose. In my case, I am using graphql and am not using any state management libraries</p>
  
  <p>Is it possible to still do such a comparison without a state management library? n how can i access initialValues inside my onSubmit handler?</p>
  
  <p>formProps has both initialValues and values. submitProps only have values but doesn't have initialValues which I need to make a comparison if the field has been changed by the user </p>
  
  <pre><code>&lt;Formik
    initialValues={{
      ...getMusicById,
    }}
    onSubmit={(values, bag, ...submitProps) =&gt; {
      console.log("@onSubmit ", values, bag, submitProps);
      const {
        session: { me }
      } = this.props;
      this._handleSubmit(values, bag, me);
    }}
    validationSchema={formValidateSchema}
    render={({ isValid, isSubmitting, ...formProps }) =&gt; {
      console.log("@formProps ", formProps);
      return (
        &lt;React.Fragment&gt;
          &lt;Form&gt;
  </code></pre>