News for hackers. Stuff that matters.
Re:Things I wish I knew about state management when I starte... by bernawil on Monday February 10, 2020 @03:27PM (#22292902)

  In my experience if the application state is overly complex then that is a result of the design, and that usually leads to a bad experience for the user.
Though it is possible to overengineer this, you're probably underestimating ho seemingly simple apps can justifiably have complex state.

Say you make API calls. Your application state just grew to reflect

1. Pending request 2. Request succesful or failed 3. Request result or error 4. Finished request.

Redux apps track all of this explicitly. The alternative to this is not reducing statefulness. It's just ignoring it with all the brings.

Re:Things I wish I knew about state management when I starte... by itronitron on Monday February 10, 2020 @04:21PM (#22293512)
Oh I agree with that, I just think that the internal state of the app can be more easily managed if those potential application states are explicitly identified during the design stage.