About me…
Manfred Steyer, ANGULARarchitects.io
(Remote) Angular Workshops
and Consulting
Google Developer Expert
for Angular
Blog, Books, Articles,
and Talks about Angular
Manfred Steyer
Slide 8
Slide 8 text
Austrian Desserts:
Example App
Slide 9
Slide 9 text
Simple Reactivity with Signals
Signal
4711
Consumer
read
set
notify
4712
Architecture Rule #1
Synchronously derive state where possible
Slide 16
Slide 16 text
Effects
Slide 17
Slide 17 text
Angular‘s Effect implementation:
Mainly for rendering!
Slide 18
Slide 18 text
Demo
Branch: 04c-effects
Slide 19
Slide 19 text
Architecture Rule #2
Avoid effects propagating state and Signal writes
Slide 20
Slide 20 text
How can my app
react on changing
State?
Slide 21
Slide 21 text
Effects are Problematic Here!
Event
(click, data, etc.)
Signal
{ … }
Logic
Slide 22
Slide 22 text
Why Effects are Problematic Here?
Glitch-free property: Events might get lost
Auto-Tracking
Cycles and change cascades
Effect: End of the „reactive chain“
More: Angular Architecture Workshop
• Maintainable Architectures
with Modern Angular
• Strategic Design with Nx & Sheriff
• Micro Frontends with Module Federation
• Signals and Your Architecture:
CD & Zone-less, NGRX & Signal Store,
RxJS-Interop
German Version: angulararchitects.io/workshop-de
English Version: angulararchitects.io/workshop-en
Slide 38
Slide 38 text
Conclusion
Architecture Rule #1
Synchronously derive state where possible
Architecture Rule #2
Avoid effects propagating state and signal writes
Architecture Rule #3
Stores make your reactive flow more manageable
Component
Store