Releases: rzane/form
Releases · rzane/form
v0.3.7
v0.3.6
v0.3.5
v0.3.4
Keep track of form submission. This allows you to retrieve the number of times the form has been submitted via form.submission.count
and any errors that were thrown during submission via form.submission.error
. These two properties in combination will allow you to determine if the form was successfully submitted.
v0.3.3
v0.3.2
v0.3.1
v0.3.0
This adds a reset
method to forms and adds a new hook to handle a form's onReset
event.
This function can also be used to reinitialize a form's state:
const user = useFetchUser();
const form = useForm({ initialValue: { name: "" } });
useEffect(() => form.reset({ value: { name: user.name } }), [user]);
v0.2.1
v0.2.0-alpha.0
Update jest