Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix getIn unexpected value #3237

Merged

Conversation

pieplu
Copy link
Contributor

@pieplu pieplu commented Jun 11, 2021

As described in #3181

It scares me a bit, touching getIn seems a big change.
But this will correct a bug, rare, but a bug in my opinion

@changeset-bot
Copy link

changeset-bot bot commented Jun 11, 2021

🦋 Changeset detected

Latest commit: a71a55a

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Jun 11, 2021

@pieplu is attempting to deploy a commit to the Formium Team on Vercel.

A member of the Team first needs to authorize it.

@johnrom
Copy link
Collaborator

johnrom commented Jun 12, 2021

This seems like a good change to me, but we'll definitely want thorough testing when modifying this particular bit of code.

const path = toPath(key);
while (obj && p < path.length) {
obj = obj[path[p++]];
export function getIn(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the formatting got messed up here. Is this indented correctly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, prettier doesn't seem to run automatically. I just fixed it, and added more tests.

@github-actions
Copy link
Contributor

This pull request is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 60 days

@github-actions github-actions bot added the stale label Jul 15, 2021
@pieplu
Copy link
Contributor Author

pieplu commented Jul 15, 2021

up

@johnrom johnrom removed the stale label Jul 15, 2021
@github-actions
Copy link
Contributor

This pull request is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 60 days

@github-actions github-actions bot added the stale label Aug 15, 2021
@pieplu
Copy link
Contributor Author

pieplu commented Sep 1, 2021

We have been using this patch in our application, on the test environment, for a few weeks, no regression found yet.
We have about 100 different components using Formik.

I totally understand that there is a fear with a change in such an important part of Formik, and that it takes time. I will keep you posted when we have deployed this to our production environment.

@pieplu
Copy link
Contributor Author

pieplu commented Oct 5, 2021

We have been using this patch in our production environment for almost a month.
We have at least 40 users, who use our form components to create and update content. All day, every day.
No regression has been seen, and the related bug no longer occurs.

@jaredpalmer

@vercel
Copy link

vercel bot commented May 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
formik-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 26, 2023 8:28pm

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 18efee9:

Sandbox Source
Formik TypeScript Playground Configuration

@jaredpalmer jaredpalmer merged commit f086b5a into jaredpalmer:master May 26, 2023
@github-actions github-actions bot mentioned this pull request May 26, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants