Skip to content

Releases: rzane/form

v0.3.7

25 Feb 21:42
Compare
Choose a tag to compare

A more reliable means of defaulting the touch option to useSubmit.

v0.3.6

25 Feb 21:29
Compare
Choose a tag to compare

The useSubmit hook accepts validation options.

v0.3.5

01 Oct 22:19
16efc68
Compare
Choose a tag to compare
  • Don't increment the submission count when the form fails validation
  • Shrink the bundle size a little bit

v0.3.4

01 Oct 21:10
Compare
Choose a tag to compare

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

01 Oct 19:53
31192ea
Compare
Choose a tag to compare

An actual fix for:

Warning: Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.

v0.3.2

11 Sep 20:14
Compare
Choose a tag to compare

Allow a submit function to return Promise<any>

v0.3.1

19 Aug 17:53
1711cf6
Compare
Choose a tag to compare

The form will make no attempt to submit if it is already in the process of submitting.

v0.3.0

17 Aug 17:51
Compare
Choose a tag to compare

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

17 Aug 16:51
Compare
Choose a tag to compare

This is just a tiny tweak that allows the input for a validator to be unknown.

v0.2.0-alpha.0

12 Aug 05:15
Compare
Choose a tag to compare
Update jest