FormControl distinctUntilChanged() not working
问题 I'm having a hard time making distinctUntilChanged work in this next scenario. I made an asynchronous validator, which uses a service to check if a user exists with the given username. This validator is bound, as a directive, to an input. class ValidateUniqueUsernameDirective implements AsyncValidator { constructor(private userService: UserService) {} validate( control: AbstractControl ): Promise<ValidationErrors> | Observable<ValidationErrors> { return control.valueChanges.pipe( debounceTime