-
Notifications
You must be signed in to change notification settings - Fork 78
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
How to create custom async validator ? #40
Comments
What do you mean by async validator? Like a validator that makes an ajax call or something to do validation that might take processing time? Please give some more info about what you are looking to do. If that assumption is correct, we currently do not support that but I think that is a valid feature request. Am open to suggestions on how this works. Might have to do some debouncing or something to ensure it doesn't run too much like it does on render for the other validators. Maybe only when the |
Thank you @stuyam Yes Like a validator that makes an ajax call, I want to check if email is unique. |
I have thought about this more, not sure if we are on the same page, I think you are suggesting that srv makes the ajax call and I think I was thinking that the ajax call it up to you but handled by a different validator method that calls async methods after regular validators so that the async validators are not run as much. |
@stuyam this is my code
and in render : |
No description provided.
The text was updated successfully, but these errors were encountered: