DEV Community

loading...

Discussion on: Angular State Management Without RxJS - An Experiment

daviddalbusco profile image
David Dal Busco Author

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.