This repository was archived by the owner on Aug 19, 2021. It is now read-only.
Releases: marceloadsj/react-indicative-hooks
Releases · marceloadsj/react-indicative-hooks
Release 1.2.4
Fix: #15
Release 1.2.3 - Deprecated
Release 1.2.2
Adding missing dist files for umd and es versions.
Release 1.2.0
Changes:
- Adding UMD build to use directly on browser;
- rule: Exporting the rule function from indicative;
- useValidate: onError function receive the first error object;
- useStateValidator: confirmationValue support to use the confirmed rule;
- useStateValidator: setError and setValue support to get the value from hook;
- useStateValidator: setValue already get the event.target.value to set;
Release 1.1.0
Changes:
-
useValidateAll: Now you can use this hook to get an array with all errors;
-
Third param as an option: You can use messages or an option object in third params, take a look on the docs;
Release 1.0.0
Supporting:
-
useValidate: It's like using the validate from indicative, but inside a hook;
-
useStateValidator: It's a simplified version of validate just for one field, and it controls the state for you;