A simple component using OnPush change detection. Detached the component in ngOnInit after the first cycle. Even after doing so, the life cycle hooks used here are being called when a button click from a different component triggers the change.
Would love to have any help understanding this!
The logs fired from the hooks can be seen below:
Top comments (1)
Thats because setTimeout internally called ngZone and detect changes for components. Same things are applied for async pipe too!