Skip to content

question: Cancel/abort async validation #2148

@TheCelavi

Description

@TheCelavi

I have tried to find any information on how to cancel validation and/or how to create custom cancelable async validator.

When dealing with canceling, RxJS (observables) are way to go, but since this library does not support observables (which is understandable), support for abort signal should be sufficient enough. Especially if async validator contacts server through network for validation (per example, unique email where check is done while user types e-mail address, with some debouncing).

So, question is:

  • Is abort signal supported? (better yet, am I blind 😄 )
  • If abort signal is not supported, are there any plans to provide support?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: questionQuestions about the usage of the library.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions