DEV Community

[Comment from a deleted post]
 
daviddalbusco profile image
David Dal Busco • Edited

Indeed did that experiment earlier this evening, if all components' change detection are set to OnPush and the components are away from the click event, then it wasn't automatically re-rendered.

For such case I would have to hook on onChances and triggers or mark the change detection.

Afterwards I improved this test by using the store directly in the template instead of the state. The first value pushed in the store did not trigger the re-rendering but any following update to the store were actually detected as changes.