DEV Community

Discussion on: Implementing Redux pattern

Collapse
 
ronancodes profile image
Ronan Connolly 🛠 • Edited

“ You can find a lot of libraries that implement this, we have Redux for React and RXJS for Angular.”

I think you meant to say NgRx not RXJS.
NgRx is the implementation of the redux pattern for angular using rxjs.

RXjs is the JS implementation of reactive extensions which itself is an implementation of the observable pattern amongst other things.

NgRx has the stores, actions, etc
Rxjs does not have those concepts.

Collapse
 
jucian0 profile image
Jucian0 • Edited

Yeah, I was confused about RXJS and NGXS and NgRx, thanks

Collapse
 
ronancodes profile image
Ronan Connolly 🛠

Oh I hadn’t even heard of ngxs!

Thread Thread
 
jucian0 profile image
Jucian0

When we think how Angular works, IMO NGXS makes more sense than NgRx

Thread Thread
 
ronancodes profile image
Ronan Connolly 🛠

Interesting, why do you think that?

Thread Thread
 
jucian0 profile image
Jucian0

Okay, my opinion is based in old versions of NgRx, but it's strange that we have a function as a reducer in Angular, but with ngxs we hava a class with decorators.
This approach make more sense for me when we are using Angular.
It's like a foreign body.