Review of Angular 2, RxJS, and Reducers from ngrx/store

John Lindquist
InstructorJohn Lindquist

Share this video with your friends

Send Tweet

This lesson summarizes everything the course has covered and how Angular 2, RxJS, and ngrx/store work together to achive a reactive application.

Lars Rye Jeppesen
Lars Rye Jeppesen
~ 5 years ago

Best course on Egghead by far. Thank you, really enlightening!

awormasi
awormasi
~ 5 years ago

With multiple reducer functions in reducers.ts, how does Redux know which reducer you're dispatching to when calling store.dispatch?

John Jones
John Jones
~ 5 years ago

If I want to load something async and fire an action to ngrx at start and finish, is there an idiomatic way to do that with RxJS?

John Jones
John Jones
~ 5 years ago

Angular 2's router seems to break the RxJS pattern established in this course. How do you mesh Angular 2 routing with RxJS?

Omer Koren
Omer Koren
~ 5 years ago

With multiple reducer functions in reducers.ts, how does Redux know which reducer you're dispatching to when calling store.dispatch?

That's an interesting question. Can you answer that? It seems like that with every dispatch all of the reducers are being processed. Does that mean we cannot have 2 actions with the same name in different reducers (assume the case of a 3rd party plugin built with ngrx, that has the same action name as I've created in my own app)?

Matt
Matt
~ 5 years ago

Awesome course! This type of course is why I subscribe to egghead.io! It integrates several different technologies in a single example building from the basics to the end result. I can look up reducers for free, angular2 for free, rxjs for free, but will easily (and do obviously!) pay for expertise that combines each together in a way that I can't easily look up myself. This saves me researching the different topics in isolation and then trying to combine them on my own without lots of trial and effort, and then adds expertise which I still wouldn't have if I tried to do all that myself! Great job.

mobility-team
mobility-team
~ 5 years ago

This is a great combination of all recent things I've seen in the last year. Thank you sir!

iUsemws
iUsemws
~ 4 years ago

Great course!!

DANIEL Pride
DANIEL Pride
~ 4 years ago

This is a really critical question for me. Was this ever answered ?

Ashley Connor
Ashley Connor
~ 4 years ago

It doesn't. The dispatcher calls each reducer with the same action payload. This is why it's important to have a unique type name if you don't want multiple reducers to process the dispatched action.

Prasad
Prasad
~ 4 years ago

That's why we have const. This will error out if have the same name of the actions. There is one better solution, use Symbol from es6. :)

Cristian Alarcón Pieriz
Cristian Alarcón Pieriz
~ 4 years ago

What about RxJS unit tests?