I have a simple test-component with no logic. I render this component. Why is the DoCheck hook called twice?
So far I understand, DoCheck is called for every change detection. But there is no change. I just render the component and DoCheck is already called two times. Also ngAfterContentChecked and ngAfterViewChecked.

Angular Change Detection - How Does It Really Work?
... Angular always running change detection twice, the second time for detecting this type of cases. In production mode change detection is only run once
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With