What is a good way to balance the pros and cons of using Redux?

Of course, Redux provides us with an excellent state management solution.

However, it is difficult to handle async mailings, and the global state may not be needed for many components in the project.

Is it possible that the solution can make the basic use of reduction, as well as cope with asynchronization problems?

+4
source share
2 answers

Be sure to check out Redux-Saga or Redux-Service first.

There are many tutorials and real-world examples using Redux-Saga, so I won’t talk much about it.

Redux-Service . , , Redux-Saga, Redux-Thunk JavaScript, Redux-Service offers an experimental way to handle (highly mutable || remote) data source && async logic in Redux.

, Express, middlewares. . Express Redux-Service .

- -, , .

+1

, Redux-Tunk, .

dispatch Promises, .

Compostion .

0

Source: https://habr.com/ru/post/1671971/


All Articles