问题
Redux is a great library to use with React. However I am facing an issue, when you update root state through reducer it looks through all the components and re renders them if they are subscribed to that state. And this is causing me a lot of trouble because I am working on a complex project which has too many components and changing one's state does affect something else.
For eg. I have a root state which composed of,
RootState
- LayerState
- DocumentState
- blah, blah, blah
And there are views which are affected when one of the state gets modified.
My query is do we have a tool available that will tell me which all components will be affected by change in a particular state?
来源:https://stackoverflow.com/questions/61919881/tool-to-find-which-states-are-affected-after-change-in-one-state-redux