Skip to content

Commit

Permalink
Replace 2.0.1 on website with 2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredpalmer committed Oct 28, 2019
1 parent 7882f3d commit 82f61d5
Show file tree
Hide file tree
Showing 21 changed files with 50 additions and 50 deletions.
@@ -1,5 +1,5 @@
---
id: version-2.0.1-connect
id: version-2.0.3-connect
title: connect()
custom_edit_url: https://github.com/jaredpalmer/formik/edit/master/docs/api/connect.md
original_id: connect
Expand Down
@@ -1,5 +1,5 @@
---
id: version-2.0.1-fastfield
id: version-2.0.3-fastfield
title: <FastField />
custom_edit_url: https://github.com/jaredpalmer/formik/edit/master/docs/api/fastfield.md
original_id: fastfield
Expand Down
@@ -1,5 +1,5 @@
---
id: version-2.0.1-field
id: version-2.0.3-field
title: <Field />
custom_edit_url: https://github.com/jaredpalmer/formik/edit/master/docs/api/field.md
original_id: field
Expand Down
@@ -1,5 +1,5 @@
---
id: version-2.0.1-fieldarray
id: version-2.0.3-fieldarray
title: <FieldArray />
custom_edit_url: https://github.com/jaredpalmer/formik/edit/master/docs/api/fieldarray.md
original_id: fieldarray
Expand Down
@@ -1,5 +1,5 @@
---
id: version-2.0.1-formik
id: version-2.0.3-formik
title: <Formik />
custom_edit_url: https://github.com/jaredpalmer/formik/edit/master/docs/api/formik.md
original_id: formik
Expand Down
@@ -1,5 +1,5 @@
---
id: version-2.0.1-useField
id: version-2.0.3-useField
title: useField()
custom_edit_url: https://github.com/jaredpalmer/formik/edit/master/docs/api/usefield.md
original_id: useField
Expand Down
@@ -1,11 +1,11 @@
---
id: version-2.0.1-useFormik
id: version-2.0.3-useFormik
title: useFormik()
custom_edit_url: https://github.com/jaredpalmer/formik/edit/master/docs/api/useFormik.md
original_id: useFormik
---

`useFormik()` is a custom React hook that will return all Formik state and helpers directly. Despite it's name, it should is not meant for the majority of usecases. Internally, Formik uses `useFormik` to create the `<Formik>` component (which rernders a [React Context](https://reactjs.org/docs/context.html) Provider). If you are trying to access Formik state via context, use [useFormikContext]. 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.
`useFormik()` is a custom React hook that will return all Formik state and helpers directly. Despite it's name, it is not meant for the majority of usecases. 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]. 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.

## Use cases for `useFormik()`

Expand Down
@@ -1,5 +1,5 @@
---
id: version-2.0.1-useFormikContext
id: version-2.0.3-useFormikContext
title: useFormikContext()
custom_edit_url: https://github.com/jaredpalmer/formik/edit/master/docs/api/useFormikContext.md
original_id: useFormikContext
Expand Down
@@ -1,5 +1,5 @@
---
id: version-2.0.1-withFormik
id: version-2.0.3-withFormik
title: withFormik()
custom_edit_url: https://github.com/jaredpalmer/formik/edit/master/docs/api/withFormik.md
original_id: withFormik
Expand Down
@@ -1,5 +1,5 @@
---
id: version-2.0.1-arrays
id: version-2.0.3-arrays
title: Arrays and Nested Objects
custom_edit_url: https://github.com/jaredpalmer/formik/edit/master/docs/guides/arrays.md
original_id: arrays
Expand Down
@@ -1,5 +1,5 @@
---
id: version-2.0.1-form-submission
id: version-2.0.3-form-submission
title: Form Submission
custom_edit_url: https://github.com/jaredpalmer/formik/edit/master/docs/guides/form-submission.md
original_id: form-submission
Expand Down
@@ -1,5 +1,5 @@
---
id: version-2.0.1-react-native
id: version-2.0.3-react-native
title: React Native
custom_edit_url: https://github.com/jaredpalmer/formik/edit/master/docs/guides/react-native.md
original_id: react-native
Expand Down
@@ -1,5 +1,5 @@
---
id: version-2.0.1-typescript
id: version-2.0.3-typescript
title: TypeScript
custom_edit_url: https://github.com/jaredpalmer/formik/edit/master/docs/guides/typescript.md
original_id: typescript
Expand Down
@@ -1,5 +1,5 @@
---
id: version-2.0.1-validation
id: version-2.0.3-validation
title: Validation
custom_edit_url: https://github.com/jaredpalmer/formik/edit/master/docs/guides/validation.md
original_id: validation
Expand Down
@@ -1,5 +1,5 @@
---
id: version-2.0.1-migrating-v2
id: version-2.0.3-migrating-v2
title: Migrating from v1.x to v2.x
original_id: migrating-v2
---
Expand Down
@@ -1,5 +1,5 @@
---
id: version-2.0.1-overview
id: version-2.0.3-overview
title: Overview
original_id: overview
---
Expand Down
@@ -1,5 +1,5 @@
---
id: version-2.0.1-resources
id: version-2.0.3-resources
title: Resources
original_id: resources
---
Expand Down
@@ -1,5 +1,5 @@
---
id: version-2.0.1-tutorial
id: version-2.0.3-tutorial
title: Tutorial
original_id: tutorial
---
Expand Down
30 changes: 0 additions & 30 deletions website/versioned_sidebars/version-2.0.1-sidebars.json

This file was deleted.

30 changes: 30 additions & 0 deletions website/versioned_sidebars/version-2.0.3-sidebars.json
@@ -0,0 +1,30 @@
{
"version-2.0.3-docs": {
"Getting Started": [
"version-2.0.3-overview",
"version-2.0.3-tutorial",
"version-2.0.3-migrating-v2",
"version-2.0.3-resources"
],
"Guides": [
"version-2.0.3-guides/validation",
"version-2.0.3-guides/arrays",
"version-2.0.3-guides/typescript",
"version-2.0.3-guides/react-native",
"version-2.0.3-guides/form-submission"
],
"API Reference": [
"version-2.0.3-api/connect",
"version-2.0.3-api/errormessage",
"version-2.0.3-api/fastfield",
"version-2.0.3-api/field",
"version-2.0.3-api/fieldarray",
"version-2.0.3-api/form",
"version-2.0.3-api/formik",
"version-2.0.3-api/useField",
"version-2.0.3-api/useFormik",
"version-2.0.3-api/useFormikContext",
"version-2.0.3-api/withFormik"
]
}
}
2 changes: 1 addition & 1 deletion website/versions.json
@@ -1,5 +1,5 @@
[
"2.0.1",
"2.0.3",
"1.5.8",
"1.5.7",
"1.5.5",
Expand Down

0 comments on commit 82f61d5

Please sign in to comment.