🏁 Framework agnostic, high performance, subscription-based form state management
OTHER License
Bot releases are visible (Hide)
Published by erikras almost 7 years ago
dirtySinceLastSubmit
flag is available to both the form and fields, which lets you know if the values have change since the last submit occurred, whether successful or not. This is particularly useful for hiding submission errors once the user has attempted to fix them. #57 #4 #38 #48Published by erikras almost 7 years ago
Published by erikras almost 7 years ago
onSubmit
is now passed the form api as well as the values. #47 https://github.com/final-form/react-final-form/issues/69
v2.x.x
:createForm({
onSubmit: (values) => {
const promise = sendToServer(values)
return promise
}
})
OR
createForm({
onSubmit: (values, callback) => {
sendToServer(values, callback)
}
})
v3.x.x
:createForm({
onSubmit: (values, form) => {
// ^^^^^^^ -------------------- 🆕
const promise = sendToServer(values)
return promise
}
})
OR
createForm({
onSubmit: (values, form, callback) => {
// ^^^^^^^ -------------------- 🆕
sendToServer(values, callback)
}
})
Published by erikras almost 7 years ago
isEqual
function for calculating pristine
and dirty
. This enables arbitrary values. Defaults to ===
. #46 https://github.com/final-form/react-final-form/issues/59
In v1.x.x
:
form.registerField(
name,
subscriber,
subscription,
validate
)
In v2.x.x
:
form.registerField(
name,
subscriber,
subscription,
{
isEqual,
validate,
validateFields
}
)
Published by erikras almost 7 years ago
Published by erikras almost 7 years ago
Something went wrong in the publishing of v1.3.4
. This release actually has its fix published properly. 😳
Published by erikras almost 7 years ago
v1.3.4
. ⚠️Published by erikras almost 7 years ago
Courtesy of #30.
Published by erikras almost 7 years ago
data
value in field state. #28Published by erikras almost 7 years ago
Decorator
type #24getRegisteredFields()
function #25Published by erikras almost 7 years ago
touched
even if it was never active
#15 https://github.com/erikras/react-final-form/issues/22
Published by erikras almost 7 years ago
data
storage, for mutators to provide extensible functionality.Published by erikras almost 7 years ago
errors
and submitErrors
objects as form state that can be subscribed to #10 #5$Shape
syntax for subscriptions and reported state. #2Published by erikras almost 7 years ago