Skip to content

Releases: rzane/form

v0.2.0

12 Aug 05:20
Compare
Choose a tag to compare

Submission and validation now have their own dedicated hooks:

const form = useForm({ initialValue: "" });

const validate = useValidation(form, value => {
  return value ? { valid: true, value } : { valid: false, error: "boom" };
});

const submit = useSubmit(validate, value => {
  console.log(value);
});

v0.1.3

07 Aug 16:26
5c9db14
Compare
Choose a tag to compare

Avoid setting state after the component unmounts.

v0.1.2

02 Aug 17:34
Compare
Choose a tag to compare
Add NPM meta

v0.1.1

02 Aug 16:00
Compare
Choose a tag to compare
Remove unnecessary useMemo

v0.1.0-alpha.4

31 Jul 21:25
Compare
Choose a tag to compare
Use better generic parameter names

v0.1.0-alpha.3

31 Jul 03:50
Compare
Choose a tag to compare
Force recursive types to always include their non-recursive counterparts

v0.1.0-alpha.2

31 Jul 02:53
Compare
Choose a tag to compare
Mark all erroneous fields as touched when submitting

v0.1.0

31 Jul 21:38
Compare
Choose a tag to compare
Update example

v0.1.0-alpha.1

30 Jul 19:54
Compare
Choose a tag to compare
Remove private denotation

v0.1.0-alpha.0

30 Jul 04:54
Compare
Choose a tag to compare
Update package name