title: Handling errors from api with Formik
body: <p>I am catching errors from api and showing them in form, and that is working fine. But the problem is when I change one field in form all errors disappear. For form I am using Formik and for validation Yup.</p>
  
  <pre><code>const handleSubmit = (values, {setSubmitting,  setFieldError, setStatus}) =&gt; {
      someApiCall(values)
          .then(
              () =&gt; {
  
              },
              (error) =&gt; {
                  // example of setting error
                  setFieldError('email', 'email is already used');
              })
          .finally(() =&gt; {
              setSubmitting(false)
          });
  };
  </code></pre>
  
  <p>I tried with adding third parametar false to setFieldError, but nothing changed.</p>