Tool to find which states are affected after change in one state redux

蹲街弑〆低调 提交于 2020-06-17 09:35:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!