Build forms in React, without the tears 😭
APACHE-2.0 License
Bot releases are visible (Hide)
Published by github-actions[bot] almost 4 years ago
0ad41eb
]:
Published by github-actions[bot] almost 4 years ago
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>
Published by github-actions[bot] almost 4 years ago
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.
Published by github-actions[bot] almost 4 years ago
6383b86
]:
Published by github-actions[bot] almost 4 years ago
ebad985
#2891 Thanks @jaredpalmer! - Remove low-priority validation implementation
0dfa23b
#2889 Thanks @jaredpalmer! - Fixed botched typescript builds including scheduler types
Published by github-actions[bot] almost 4 years ago
Published by github-actions[bot] almost 4 years ago
199e77a
#2882 Thanks @umidbekkarimov! - Validate setFieldTouched
with high priority
Updated dependencies [199e77a
]:
Published by github-actions[bot] almost 4 years ago
199e77a
#2882 Thanks @umidbekkarimov! - Validate setFieldTouched
with high priorityPublished by github-actions[bot] almost 4 years ago
Published by github-actions[bot] almost 4 years ago
e0a28e6
#2867 Thanks @umidbekkarimov! - Fix low priority validation for browser password autofill.
Published by github-actions[bot] almost 4 years ago
e0a28e6
#2867 Thanks @umidbekkarimov! - Fix low priority validation for browser password autofill.
Published by github-actions[bot] almost 4 years ago
Published by github-actions[bot] almost 4 years ago
00f95ec
#2854 Thanks @umidbekkarimov! - Fix low priority validation race condition.
Updated dependencies [00f95ec
]:
Published by github-actions[bot] almost 4 years ago
00f95ec
#2854 Thanks @umidbekkarimov! - Fix low priority validation race condition.Published by github-actions[bot] almost 4 years ago
1c2175a
#2848 Thanks @jaredpalmer! - Ensure that parse and format aren't passed through in Field componentsPublished by github-actions[bot] almost 4 years ago
1c2175a
]:
Published by github-actions[bot] almost 4 years ago
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.
Published by github-actions[bot] almost 4 years ago
5efd691
]:
Published by github-actions[bot] almost 4 years ago
e04886d
#2820 Thanks @wellyshen! - Fixed bug with scheduler and validateFormWithLowPriority
method not be scheduled correctlyPublished by github-actions[bot] almost 4 years ago
e04886d
]: