Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for async validation #31

Open
bsonntag opened this issue Aug 19, 2020 · 0 comments
Open

Add support for async validation #31

bsonntag opened this issue Aug 19, 2020 · 0 comments

Comments

@bsonntag
Copy link
Contributor

In some cases it might be necessary to run validations that are asynchronous. For example, you might want to see if an email is already registered while the user is typing.

ajv already supports async validation, but using that means that the validate function will return a promise. This is a problem because we're calling validate inside the form's state reducer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant