You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a duplicate of #994. Use reducer composition pattern. Reducers can call other reducers to handle parts of their state. Also, shopping-cart example in the repo shows how to do it.
I wrote a Tree component with Redux to handle my state , the structure of the state used like this:
When I want to change
cate['1']['children']['1_1']['expand']
equal true in reducer , I found it's very difficult with code likeI am a fresher in Redux, could you give me a solution? thank you!
The text was updated successfully, but these errors were encountered: