Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic validator with AsyncValidator #27

Open
FolabiAhn opened this issue Nov 20, 2021 · 0 comments
Open

Generic validator with AsyncValidator #27

FolabiAhn opened this issue Nov 20, 2021 · 0 comments

Comments

@FolabiAhn
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant