🏁 Framework agnostic, high performance, subscription-based form state management
OTHER License
Bot releases are visible (Hide)
Published by erikras over 6 years ago
destroyOnUnregister
config flag to blow away field values when a field is unmounted. Defaults to false
. #133Published by erikras over 6 years ago
Burned through a few versions because NPM was acting wonky. I wouldn't necessarily trust v4.7.1
or v4.7.2
, even though the only thing that changed was the version number.
Published by erikras over 6 years ago
configKeys
value. Only used internally to interact with react-final-form
.Published by erikras over 6 years ago
keepDirtyOnReinitialize
config flag #130 https://github.com/final-form/react-final-form/issues/246
Published by erikras over 6 years ago
hadValidationErrors
that was reporting true
when there were no errors. #121 #123 #126Published by erikras over 6 years ago
form.isValidationPaused()
API needed to fix a bug in 🏁 React Final Form. #119Published by erikras over 6 years ago
Published by erikras over 6 years ago
reset()
on both Flow and Typescript. #114Published by erikras over 6 years ago
v4.5.0
was broken. 😳
hasSubmitErrors
and hasValidationErrors
boolean flags added to FormState
to make it easier to ascertain why invalid === true
. #108 #80 #81 https://github.com/final-form/react-final-form/issues/89
initialValues
can now be passed to reset to avoid having to do reset(); initialize(values);
#100 #98 #99Symbol
in favor of unique strings. This removes the need for polyfills for older browsers. #109 #106Promise
returned by submit()
#107 #78touched
when a submission failed with submit errors. #113 https://github.com/final-form/react-final-form/issues/186
Published by erikras over 6 years ago
import { ARRAY_ERROR } from 'final-form'
...
errors.items = []
errors.items[ARRAY_ERROR] = 'You need some items'
form.getFieldState(fieldName)
API to inquire about the state of a given field. #93 #91Published by erikras over 6 years ago
Published by erikras over 6 years ago
setConfig
function to allow realtime updating of config values #87 final-form/react-final-form#128Published by erikras over 6 years ago
submitFailed
, etc.) when form.reset()
is called. #84 #72Published by erikras over 6 years ago
pauseValidation()
and resumeValidation()
to have finer control over when the automatic validation is run. #74 #73Published by erikras over 6 years ago
undefined
was removing it from the array. #69 https://github.com/final-form/react-final-form/issues/133
touched
and visited
objects to subscribable form state. #70 https://github.com/final-form/react-final-form/issues/132
Published by erikras over 6 years ago
mutators
is defined to avoid bad strongly typed developer casting experience #68Published by erikras almost 7 years ago
For some reason v4.0.2
did not have the changes it was supposed to have... 🤷♂️
Published by erikras almost 7 years ago
Published by erikras almost 7 years ago
submitFailed
is now true
if the submission failed because of sync validation errors. #64 #63Published by erikras almost 7 years ago
It's fairly minor, but when you register a field now, rather than provide a field-level validation function, now you must provide a function that returns the validation function. The migration is pretty trivial:
v3.x.x
form.registerField(
'firstName',
fieldState => { // do something with field state },
fieldSubscription,
{
validate: value => { // return error }
}
)
v4.x.x
form.registerField(
'firstName',
fieldState => { // do something with field state },
fieldSubscription,
{
validate: () => value => { // return error }
// ^^^^^--- ADD THIS 👀
}
)