D
D
Dmitry2017-01-29 21:30:32
React
Dmitry, 2017-01-29 21:30:32

How to act from one reducer to another?


I have a state { cities: [], activeCity: {} } add to activeCity.
What is the best way to do this in react-redux?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Gushchin, 2017-01-30
@iNikNik

Put this state in one reducer. Then you can easily see how many cities are left in the array to change the active city

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question