Asynchronous validators with pending state
Support validators that return a Promise or an Observable, such as a uniqueness check on the server. Show a pending indicator while they run. Stale results are discarded through AbortSignal, debouncing and race protection.
Planned. This page shows the specification from issue #195. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Users grid backed by a mock server with configurable latency.
Expected behavior
Typing quickly triggers only one request after the debounce period. An earlier response that arrives late is ignored. A timeout produces the 'validationTimeout' error. A server error shows a retryable 'Could not validate' warning.
Planned API surface
columns[].asyncValidatorsAsyncValidatorFn(value, ctx, signal)asyncDebounceMsasyncTimeoutMscellValidationPendingAcceptance criteria
- The previous request's AbortSignal is aborted when the value changes. (pending)
- Only the latest result is applied. (pending)
- The cell has a pending state that is queryable via isPending(). (pending)
- Save waits for or blocks on pending validators according to the save policy (F09). (pending)