Updating state property depending on other property using reactive forms
If you plan to update state property based on other form property for example: reset post code on house number change. When you type in hause number ipost code will reset but hause number input will remain unchanged. Please see code bellow
Why did this happened? Because FormsManager has default debounceTime of 100ms before syncing form value to a state. Since post code state is updated before, so state update is synced first back to form with originl hause number value.
In order to fix that add debouncTime to code which will be greater that default FormsManager debounceTime