AngularFire
NgRx without the Reducers
How do I use
AngularFire
with
NgRx?
How do I keep from adding to this mess?
"Instead of trying to memorize how to plug the pieces together you need to learn the underlying concepts. Then you'll be able to solve any problem."
Learn the concepts behind
AngularFire
and
NgRx
Promise or Callback
to
Observable
State Management
for Remote Data
Why don't we just dispatch
state changes to the store?
Just adds to the
mental boilerplate
AngularFirestore
— Remote State Management
NgRx Store
— General State Management
Say hello to AngularFireRedux*
Experimental, not production
No reducers
Baked-in actions
Single Responsibility
AngularFirestore
— Remote state
Single Responsibility
AngularFirestore
— Remote state
NgRx Store
— Local state
How do I use
AngularFire with NgRx?
Don't duplicate responsibility
Don't duplicate responsibility
Use create reducers for storing remote state
Don't duplicate responsibility
Don't create reducers for storing remote state
Use the baked-in actions to dispatch remote state
Don't duplicate responsibility
Don't create reducers for storing remote state
Use the baked-in actions to dispatch remote state
Use the NgRx Store for local state.