Skip to content
This repository was archived by the owner on Aug 19, 2021. It is now read-only.

Releases: marceloadsj/react-indicative-hooks

Release 1.2.4

21 Jan 16:49
Compare
Choose a tag to compare

Release 1.2.3 - Deprecated

21 Jan 14:42
Compare
Choose a tag to compare

Release 1.2.2

28 Feb 19:33
Compare
Choose a tag to compare

Adding missing dist files for umd and es versions.

Release 1.2.0

28 Feb 08:40
00144a0
Compare
Choose a tag to compare

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

09 Feb 17:56
Compare
Choose a tag to compare

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

08 Feb 19:38
Compare
Choose a tag to compare

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;