When dynamically adding a new FormControl with asyncValidation to a reactive form the form goes from PENDING to VALID/INVALID but statusChanges is not trigger.
I have a form that is dynamically modified and, after that happen, I subscribe to statusChanges. I'm printing the form's status and I can check that the status changes but stausChanges is not trigger.
Here is an example https://stackblitz.com/edit/angular-pvebmb?file=src%2Fapp%2Fapp.component.ts .
In this example you can check that there is a subscription to console.log for statusChanges. There is a button that, when clicked, adds a new FormControl with a async validation that takes 1 second to complete. You can check that, when you click in the button the form's status (that is printed in the html) goes from PENDING to INVALID but no console.log related to the statusChanges is printed.
I expected to get statusChanges triggered every time the form's status value changes.
this.form.get('simpleValue').statusChanges.subscribe((status) => console.log('STATUS has changed: ' + status)
because you put the validator in the control - Eliseo