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

Optimize form and error message #2893

Merged
merged 5 commits into from
Nov 11, 2020
Merged

Optimize form and error message #2893

merged 5 commits into from
Nov 11, 2020

Conversation

jaredpalmer
Copy link
Owner

Added optimized Form, ErrorMessage, and the following additional optimized field-level hooks
and components that only rerender when their respective slices have changed:

  • unstable_useFieldValue
  • unstable_useFieldTouched
  • unstable_useFieldError
  • unstable_useStrictField
  • unstable_StrictField

In addition, there is a very very unstable unstable_useFormikContextSelector that we'll be using
to prototype other APIss in product that is also included. This will definitely not be released, so you have been warned.

@vercel
Copy link

vercel bot commented Nov 11, 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/d64wfv3fm
✅ Preview: https://formik-git-form-and-errormsg.formium.vercel.app

@changeset-bot
Copy link

changeset-bot bot commented Nov 11, 2020

🦋 Changeset detected

Latest commit: 6383b86

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

@github-actions
Copy link
Contributor

Size Change: -823 B (1%)

Total Size: 45.1 kB

Filename Size Change
packages/formik/dist/formik.cjs.development.js 18.1 kB -389 B (2%)
packages/formik/dist/formik.cjs.production.min.js 8.07 kB -29 B (0%)
packages/formik/dist/formik.esm.js 17.9 kB -405 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 jaredpalmer merged commit 6354f5d into next Nov 11, 2020
@jaredpalmer jaredpalmer deleted the form-and-errormsg branch November 11, 2020 22:41
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.

1 participant