-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(useFormState): add revalidateOnChange dependencies array option,…
… refactor options into object (#94) Replaces the yupOptions argument with an options object including yupOptions and a new option called revalidateOnChange, which is an array of arbitrary variables. If any of these variables change since the last validation, the form will revalidate even if none of the values changed. This can be used to force revalidation when some asynchronous task is done, like checking a connection from credentials stored in form state. BREAKING CHANGE: Any forms using the yupOptions argument will need to wrap it in an object with the property yupOptions instead of passing it directly as a top-level argument.
- Loading branch information
Showing
2 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters