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

fix Arrays example #550

Merged
merged 1 commit into from Apr 2, 2018
Merged

fix Arrays example #550

merged 1 commit into from Apr 2, 2018

Conversation

saadq
Copy link
Contributor

@saadq saadq commented Apr 1, 2018

Old Version: https://codesandbox.io/s/jjlj9w5v2w
Fixed Version: https://codesandbox.io/s/0yj34y8pvn


The current code in the Arrays.js example currently fails to work. You can reproduce the error by doing one of the following:

  • Remove a friend and then add a friend
  • Add a friend and then remove a friend

This PR should fix this (and also get rid of the error about a missing key).

@saadq
Copy link
Contributor Author

saadq commented Apr 1, 2018

The issue seems to go away without the need for also adding in a check for:

touched.friends[index] &&

But let me know if you'd like me to include that as well.

@jaredpalmer jaredpalmer merged commit 164b139 into jaredpalmer:master Apr 2, 2018
berdyshev pushed a commit to berdyshev/formik that referenced this pull request Apr 17, 2018
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.

None yet

2 participants