News for hackers. Stuff that matters.
Re:Things I wish I knew about state management when I starte... by hashamali on Monday February 10, 2020 @04:02PM (#22293291)
I think this is generally a side effect of people considering actions to be a replacement for the Controller part of MVC. Meaning any sort of logic (including legitimate state manipulation) is jammed into actions.

Personally, I don't see that as a huge problem. Better in an action than sprinkled into components. As someone else mentioned, redux-thunk makes this even easier (and one could argue, promotes this).

Re:Things I wish I knew about state management when I starte... by nohuhu on Monday February 10, 2020 @04:48PM (#22293751)
Another way of doing controller stuff is by actually using a Controller: https://github.com/riptano/statium#viewcontroller. Example: https://github.com/nohuhu/react-statium-realworld-example-ap...

Logic flow doesn't have to be hard to do.

Re:Things I wish I knew about state management when I starte... by pier25 on Monday February 10, 2020 @06:20PM (#22294480)
Yes, I agree on the MVC part.

> Better in an action than sprinkled into components

Totally.