Whoami
Alexandru Albu
Trainer @JSLeague
frontend developer @6yo
design: photoshop, illustrator
development: javascript. python, sql, mongo
tools: docker, cypress, jest
and gaming and basketball
INTRO
Angular Advanced: State Management
Angular Advanced: State Management
Angular Advanced: State Management
server data
user information
user input
ui state
router / location state
Angular Advanced: State Management
Angular Advanced: State Management
the reason behind state management
Angular Advanced: State Management
the process to get to state management
Angular Advanced: State Management
the tool to handle states
REDUX
Angular Advanced: State Management
Angular Advanced: State Management
single source of truth
state is read-only
pure functions update the state
Angular Advanced: State Management
single state tree
actions
reducers
store
one way data flow
Angular Advanced: State Management
component triggers action
action is dispatched to reducer
reducer processes action and returns new state
store is updated with new state
store notifies subscribers
Q&A
Angular Advanced: State Management