diff --git a/.all-contributorsrc b/.all-contributorsrc index 03c818670..a5dd02a27 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -123,10 +123,10 @@ ] }, { - "login": "probablyup", + "login": "quantizor", "name": "Evan Jacobs", "avatar_url": "https://avatars.githubusercontent.com/u/570070?v=4", - "profile": "https://probablyup.com", + "profile": "https://quantizor.dev", "contributions": [ "question", "code", diff --git a/.changeset/empty-vans-bathe.md b/.changeset/empty-vans-bathe.md new file mode 100644 index 000000000..adfff99c5 --- /dev/null +++ b/.changeset/empty-vans-bathe.md @@ -0,0 +1,5 @@ +--- +'formik': patch +--- + +Changing the state inside formik was changing reference of initialValues provided via props, deep cloning the initialvalues will fix it. diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b948465e4..605db9d96 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,6 +1,6 @@ # Learn how to add code owners here: # https://help.github.com/en/articles/about-code-owners -* @jaredpalmer @probablyup -/docs/ @jaredpalmer @probablyup -/examples/ @jaredpalmer @probablyup \ No newline at end of file +* @jaredpalmer @quantizor +/docs/ @jaredpalmer @quantizor +/examples/ @jaredpalmer @quantizor \ No newline at end of file diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index b58951398..1193bd4d0 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -69,8 +69,8 @@ git remote add upstream https://github.com/formik/formik.git 3. Synchronize your local `next` branch with the upstream one: ```sh -git checkout master -git pull upstream master +git checkout main +git pull upstream main ``` 4. Install the dependencies with [yarn](https://yarnpkg.com) (npm isn't supported): @@ -122,7 +122,7 @@ the results. If any of them fail, refer to [Checks and how to fix them](#checks- Make sure the following is true: -- The branch is targeted at `master` for ongoing development. We do our best to keep `master` in good shape, with all tests passing. Code that lands in `master` must be compatible with the latest stable release. It may contain additional features, but no breaking changes. We should be able to release a new minor version from the tip of `master` at any time. +- The branch is targeted at `main` for ongoing development. We do our best to keep `main` in good shape, with all tests passing. Code that lands in `main` must be compatible with the latest stable release. It may contain additional features, but no breaking changes. We should be able to release a new minor version from the tip of `main` at any time. - If a feature is being added: - If the result was already achievable with the library, explain why this feature needs to be added. - If this is a common use case, consider adding an example to the documentation. diff --git a/.vscode/settings.json b/.vscode/settings.json index e56b4cfc8..11a40855a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,6 +2,6 @@ "typescript.tsdk": "node_modules/typescript/lib", "editor.formatOnSave": false, "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" }, } diff --git a/docs/api/fastfield.md b/docs/api/fastfield.md index cd9d7b1bf..32fa48ee3 100644 --- a/docs/api/fastfield.md +++ b/docs/api/fastfield.md @@ -57,7 +57,8 @@ const Basic = () => ( alert(JSON.stringify(values, null, 2)); }, 500); }} - render={formikProps => ( + > + {formikProps => (