Skip to content

Commit

Permalink
Merge branch 'master' into replay-2384
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored May 26, 2023
2 parents 3260dff + 9289545 commit f38730e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/useFormik.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ id: useFormik
title: useFormik()
---

`useFormik()` is a custom React hook that will return all Formik state and helpers directly. Despite its name, it is not meant for the majority of use cases. Internally, Formik uses `useFormik` to create the `<Formik>` component (which renders a [React Context](https://reactjs.org/docs/context.html) Provider). If you are trying to access Formik state via context, use [useFormikContext](useFormikContext). Only use this hook if you are NOT using `<Formik>` or `withFormik`.
`useFormik()` is a custom React hook that will return all Formik state and helpers directly. Despite its name, it is not meant for the majority of use cases. Internally, Formik uses `useFormik` to create the `<Formik>` component (which renders a [React Context](https://reactjs.org/docs/context.html) Provider). If you are trying to access Formik state via context, use [useFormikContext](useFormikContext.md). Only use this hook if you are NOT using `<Formik>` or `withFormik`.

\*\* Be aware that `<Field>`, `<FastField>`, `<ErrorMessage>`, `connect()`, and `<FieldArray>` will NOT work with `useFormik()` as they all require React Context.

Expand Down

0 comments on commit f38730e

Please sign in to comment.