Skip to content

Consider adding support for async validation #2

@teneko

Description

@teneko

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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestresearchInvestigating potential issues, compatibility, or unknown behavior.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions