DEV Community

Discussion on: Do you need a State Management Library?

Collapse
 
latobibor profile image
András Tóth

My favorite is overmindjs which I would describe as if somebody who codes regularly rewrote redux to be actually "ergonomic" without the false functional programming paradigm and with an actual smart TypeScript implementation that works. It still has issues with handling deep nested values, but it is many steps to the right direction.

So to answer your question: in very simple cases you don't need a library. If your state grows, you have separate menus with their separate stuff, you will need namespacing, grouping. If you have complex set of state transformations (like having editing mode and then go back to preview mode) you will need a state machine as well (overmindjs also has it).

I think why people want to get rid of state management libs are coming from design mistakes that made them not ergonomic.