C
C
Coder3212017-03-23 14:46:42
Angular
Coder321, 2017-03-23 14:46:42

Angular 2 and Redux?

The question is probably banal and the answer most likely depends on the preferences of the developer, but still, is it worth using Redux along with Angular 2? I worked with React and Redux for some time, to be honest, it’s a pretty cool thing, but I didn’t see any huge advantages in using Redux. Can someone explain to me in simple terms and the appropriateness of using it with Angular 2?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim, 2017-03-23
@maxfarseer

I worked with React and Redux for some time, to be honest, it’s a pretty cool thing, but I didn’t see any huge advantages in using Redux.

1) Didn't see about what? Regarding flux / mobx / etc.. ?
2) Or just Redux vs setState for all data in the app? (sarcasm) That's what I mean, you either had a small application (very small), or you didn't understand something. If, regarding paragraph 1, then complete the question

A
Andrey, 2017-03-23
@f-end

One of the Angular developers described his experience of using the Redux pattern to build the architecture of a complex application: blog.mgechev.com/2016/04/10/scalable-javascript-si...
You can also find an example of its implementation using RXJS there.
That is, redux in Angular 2 is quite appropriate and actively used.

A
Aleksei Podgaev, 2017-03-24
@alexiusp

To be honest, I have not yet used this bundle in serious projects. In one of the applications, the architecture after the nth iteration became very close to the redux pattern, so I think such a bundle is quite appropriate if there is a fairly complex state hierarchy. The advantage of redux is in a clear understanding of the current state of the application - at any time it is clear what data is in the application, what data has not yet been loaded, where and at what stage an error occurred. In general, a single and immutable state store is a pretty powerful thing in itself, regardless of whether you use angular or react or whatever.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question