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

Refactor v3 for alpha #2903

Merged
merged 10 commits into from
Nov 14, 2020
Merged

Refactor v3 for alpha #2903

merged 10 commits into from
Nov 14, 2020

Conversation

jaredpalmer
Copy link
Owner

  • Renames unstable_StrictField to FastField.
  • Deprecates <FastField shouldUpdate> prop with warning. If you need this functionality, use useFormikContext() and useField() in a custom component wrapped in React.memo() instead.
  • Breaking: FastField is no longer passed a form object in any render prop. If you still need to access the form object in the render prop use Field (which updates on every render).

@changeset-bot
Copy link

changeset-bot bot commented Nov 13, 2020

🦋 Changeset detected

Latest commit: fc8be9a

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

This PR includes changesets to release 2 packages
Name Type
formik Patch
formik-native Patch

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 Nov 13, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/formium/formik/5g7k39icd
✅ Preview: https://formik-git-rename.formium.vercel.app

@github-actions
Copy link
Contributor

github-actions bot commented Nov 13, 2020

Size Change: -1.31 kB (2%)

Total Size: 43.8 kB

Filename Size Change
packages/formik/dist/formik.cjs.development.js 17.6 kB -449 B (2%)
packages/formik/dist/formik.cjs.production.min.js 7.67 kB -404 B (5%)
packages/formik/dist/formik.esm.js 17.4 kB -459 B (2%)
ℹ️ View Unchanged
Filename Size Change
packages/formik-native/dist/formik-native.cjs.development.js 306 B 0 B
packages/formik-native/dist/formik-native.cjs.production.min.js 242 B 0 B
packages/formik-native/dist/formik-native.esm.js 238 B 0 B
packages/formik-native/dist/index.js 150 B 0 B
packages/formik/dist/index.js 143 B 0 B

compressed-size-action

@jaredpalmer
Copy link
Owner Author

I am going to merge so that we can cut a release with these changes. More work needed to update tests

@jaredpalmer jaredpalmer merged commit c8f8cb3 into next Nov 14, 2020
@jaredpalmer jaredpalmer deleted the rename branch November 14, 2020 19:29
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

1 participant