formik

Build forms in React, without the tears 😭

APACHE-2.0 License

Downloads
11.2M
Stars
33.5K
Committers
456

Bot releases are visible (Hide)

formik - https://github.com/jaredpalmer/formik/releases/tag/[email protected]

Published by github-actions[bot] almost 4 years ago

Patch Changes

formik - https://github.com/jaredpalmer/formik/releases/tag/[email protected]

Published by github-actions[bot] almost 4 years ago

Patch Changes

  • 0ad41eb #2903 Thanks @jaredpalmer! - Renames unstable_StrictField to FastField and thus deprecates <FastField shouldUpdate> prop. If you need this functionality, use useFormikContext() and useField() in a custom component wrapped in React.memo() instead. In addition, and this is breaking, FastField is no longer passed form object in any render prop.

    If you still need to access the form object in render use FormikConsumer like so:

    - import { FastField } from 'formik'
    + import { FastField, FormikConsumer } from 'formik'
    
    <FastField name="firstName">
    - {({ field, meta, form }) => ( /* ... */ )}
    + {({ field, meta }) => (
    +   <FormikConsumer>{form => /* ... */}</FormikConsumer>
    + )}
    </FastField>
    
formik - https://github.com/jaredpalmer/formik/releases/tag/[email protected]

Published by github-actions[bot] almost 4 years ago

Patch Changes

  • 6383b86 #2893 Thanks @jaredpalmer! - 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.

formik - https://github.com/jaredpalmer/formik/releases/tag/[email protected]

Published by github-actions[bot] almost 4 years ago

Patch Changes

formik - https://github.com/jaredpalmer/formik/releases/tag/[email protected]

Published by github-actions[bot] almost 4 years ago

Patch Changes

formik - https://github.com/jaredpalmer/formik/releases/tag/[email protected]

Published by github-actions[bot] almost 4 years ago

Patch Changes

formik - https://github.com/jaredpalmer/formik/releases/tag/[email protected]

Published by github-actions[bot] almost 4 years ago

Patch Changes

formik - https://github.com/jaredpalmer/formik/releases/tag/[email protected]

Published by github-actions[bot] almost 4 years ago

Patch Changes

formik - https://github.com/jaredpalmer/formik/releases/tag/[email protected]

Published by github-actions[bot] almost 4 years ago

Patch Changes

formik - https://github.com/jaredpalmer/formik/releases/tag/[email protected]

Published by github-actions[bot] almost 4 years ago

Patch Changes

formik - https://github.com/jaredpalmer/formik/releases/tag/[email protected]

Published by github-actions[bot] almost 4 years ago

Patch Changes

formik - https://github.com/jaredpalmer/formik/releases/tag/[email protected]

Published by github-actions[bot] almost 4 years ago

Patch Changes

formik - https://github.com/jaredpalmer/formik/releases/tag/[email protected]

Published by github-actions[bot] almost 4 years ago

Patch Changes

formik - https://github.com/jaredpalmer/formik/releases/tag/[email protected]

Published by github-actions[bot] almost 4 years ago

Patch Changes

formik - https://github.com/jaredpalmer/formik/releases/tag/[email protected]

Published by github-actions[bot] almost 4 years ago

Patch Changes

formik - https://github.com/jaredpalmer/formik/releases/tag/[email protected]

Published by github-actions[bot] almost 4 years ago

Patch Changes

formik - https://github.com/jaredpalmer/formik/releases/tag/[email protected]

Published by github-actions[bot] almost 4 years ago

Major Changes

  • 5efd691 #2255 Thanks @jaredpalmer! - Added parse, format, and formatOnBlur to getFieldProps options, <Field>, and useField. Going forward, there is no reason aside from backwards compatibility to continue using either formikProps.handleChange or formikProps.handleBlur. These are both inferior to the onChange and onBlur functions returned by getFieldProps() which the ability to utilize parse, format, and formatOnBlur.

    Breaking Change
    Instead of just passing back formikProps.handleChange and formikProps.handleBlur, the onChange and onBlur handlers returned by getFieldProps() (and thus useField/<Field>) are now scoped to the field already and now accept either a React Synthetic event or a value. In the past, you could need to curry the handler with the string name of field to get this functionality. This likely doesn't impact many users, but it is technically breaking nonetheless.

formik - https://github.com/jaredpalmer/formik/releases/tag/[email protected]

Published by github-actions[bot] almost 4 years ago

Patch Changes

formik - https://github.com/jaredpalmer/formik/releases/tag/[email protected]

Published by github-actions[bot] almost 4 years ago

Patch Changes

  • e04886d #2820 Thanks @wellyshen! - Fixed bug with scheduler and validateFormWithLowPriority method not be scheduled correctly
formik - https://github.com/jaredpalmer/formik/releases/tag/[email protected]

Published by github-actions[bot] almost 4 years ago

Patch Changes

Package Rankings
Top 0.27% on Npmjs.org
Top 3.35% on Proxy.golang.org
Badges
Extracted from project README
Stable Release Blazing Fast gzip size license Discord