Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs (Nested Object): Wrap Fields with Form #1681

Merged
merged 1 commit into from
Jul 15, 2019

Conversation

billfienberg
Copy link
Contributor

@billfienberg billfienberg commented Jul 15, 2019

Fix Invariant Violation - React.Children.only expected to receive a single React element child error in the Nested Object example from the docs.

There was a linting error because Form was imported, but never used. Wrapping the Field and button elements with <Form> fixed both the linting error and the Invariant Violation.

Broken: https://codesandbox.io/s/broken-nested-objects-formik-example-45smt
Fixed: https://codesandbox.io/embed/fixed-nested-objects-formik-example-5kv12


View rendered docs/guides/arrays.md

Fix Invariant Violation - React.Children.only expected to receive a single React element child error in the [Nested Object example from the docs](https://jaredpalmer.com/formik/docs/guides/arrays#nested-objects). 

There was a linting error because `Form` was imported, but never used. Wrapping the `Field` and `button> elements with `<Form>` fixed both the linting error and the Invariant Violation.

Broken: https://codesandbox.io/s/broken-nested-objects-formik-example-45smt
Fixed: https://codesandbox.io/embed/fixed-nested-objects-formik-example-5kv12
@jaredpalmer jaredpalmer merged commit c63b1cf into jaredpalmer:master Jul 15, 2019
@billfienberg billfienberg deleted the patch-2 branch July 15, 2019 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants