Skip to content

Commit

Permalink
chore: more impersonal language
Browse files Browse the repository at this point in the history
  • Loading branch information
quantizor authored Sep 8, 2023
1 parent a235013 commit 09f68a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guides/form-submission.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ To submit a form in Formik, you need to somehow fire off the provided `handleSub

### Submission

- Proceed with running your submission handler (i.e. `onSubmit` or `handleSubmit`)
- Proceed with running the submission handler (i.e. `onSubmit` or `handleSubmit`)
- Did the submit handler return a promise?
- Yes: Wait until it is resolved or rejected, then set `setSubmitting` to `false`
- No: _You call `setSubmitting(false)`_ in your handler to finish the cycle
- No: _Call `setSubmitting(false)`_ to finish the cycle

## Frequently Asked Questions

Expand Down Expand Up @@ -59,7 +59,7 @@ If `isValidating` is `true` and `isSubmitting` is `true`.
</details>

<details>
<summary>Why does isSubmitting remain true after submission?</summary>
<summary>Why does `isSubmitting` remain true after submission?</summary>

If the submission handler returns a promise, make sure it is correctly resolved or rejected when called.

Expand Down

0 comments on commit 09f68a7

Please sign in to comment.