I've seen this idea a lot from members of my team that when you use a state management library then absolutely everything has to go through that state management library. This results in some of that pain you describe with state that's specific to the UI. If you're still working with React, try keeping that menu or input state in the component with setState instead of putting it in the global state store. I've found that simple change to clarify our projects immensely by cutting out lots of unnecessary code and highlighting what state is actually important to the functioning of the application.
acemarke|7 years ago
https://redux.js.org/faq/organizing-state#do-i-have-to-put-a...
_bxg1|7 years ago
aylmao|7 years ago