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

Async validation to server-side call #64

Open
benjaminsampica opened this issue Mar 12, 2021 · 2 comments
Open

Async validation to server-side call #64

benjaminsampica opened this issue Mar 12, 2021 · 2 comments

Comments

@benjaminsampica
Copy link

benjaminsampica commented Mar 12, 2021

Does this library support async validation within an EditContext? I'm having issues specifically validating with MustAsync which calls out to a database to ensure data is valid before returning the success/failure to the UI. EditContext seems to Validate successfully before this asynchronous event is called and thus is bypassing the validator when it's invalid.

I see other Blazor Fluent Validation libraries are also possibly having issues with this.

@MarvinKlein1508
Copy link

We are having the same issue when calling any async code within our validation methods.

@Snailya
Copy link

Snailya commented Jul 15, 2021

Same issue with fluentvalidation and this repo. The MustAsync method invokes after the first submit, so the state is alreays valid on first submit, then become invalid.
image

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

3 participants