- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1
 
Open
Labels
enhancementNew feature or requestNew feature or requestresearchInvestigating potential issues, compatibility, or unknown behavior.Investigating potential issues, compatibility, or unknown behavior.
Milestone
Description
Is it worth adding asynchronous capabilities to the whole validator component infrastructure?
See possible reference implementation:
dotnet/aspnetcore#7680
We could realize it by utilizing EditContext.Properties. But then it would become library specific.
Alternative is to wait for official support.
Ideas:
- Monkey patch 
private readonly Func<Task> _handleSubmitDelegate;inEditForm. - Provide opinionated EditForm
 - Scope async support to our infrastructure for explicit usage.
 
Drawbacks:
- Those who call Validate() and rely on immediate validation message availability would have to adapt, e.g. EditForm
 - Do you really want asynchronous validation per field? Could lead to serious delay time due to misue.
 
Alternatives:
- Bind state to the model, and do not introduce async validation in the first place.
 
Neth01
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestresearchInvestigating potential issues, compatibility, or unknown behavior.Investigating potential issues, compatibility, or unknown behavior.