Skip to content

[email protected]

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 14 Nov 19:46
· 203 commits to main since this release
f828d75

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>