E
E
EgorKluch2017-07-31 16:13:05
redux
EgorKluch, 2017-07-31 16:13:05

How to use Redux and third party libraries together?

Hello!
I'm learning Redux. I really like the concept, an ardent fan already, but the question arose:
Redux implies immutability of data directly. At every point in time, there is a state that precisely defines the data model and UI attributes. You cannot change them directly, only through reducers. Thus, in addition to data manageability, we get such advantages as easy debugging, the ability to view the history of changes, which would make it easier to find an error, etc.
But, if you have to work with external libraries, when using which there is no way to control states - how to be in this case? For example, I simply load Google Maps onto the page and work with the library - I show pop-ups, dots, etc.
But, the user can work with the map directly - and it is not possible to track state changes. Many advantages are immediately lost in this case. Similarly, there may be problems with the payment system, etc.
Who faced such challenges? Please share your experience. Or maybe someone knows a good article on this topic.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question