Skip to content

Generic validator with AsyncValidator #27

@FolabiAhn

Description

@FolabiAhn

I'm just opening a little discussion on this subject.

I wonder if this part of the code will work with AsyncValidators ?
merge(this.productForm.valueChanges, ...controlBlurs).pipe( debounceTime(800) ).subscribe(value => { this.displayMessage = this.genericValidator.processMessages(this.productForm); });

My guess is this.genericValidator.processMessages(this.productForm) will end before AsyncValidators and so async errors won't be displayed. Maybe the errors will be displayed the next time this.genericValidator.processMessages(this.productForm) run again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions