Earlier quoted context omitted.
One benefit is that you have explicit events that create specific state changes. Your app is a succession of these events that certainly help when debugging and thinking about the potential states your app can be in. Like other state management solutions, it also 'writes' all your shouldComponentUpdate methods for you.
Sounds like event sourcing, for ui.
Learn how to use Redux step-by-step
31–33 of 33 posts
Re: Learn how to use Redux step-by-step
#32Earlier quoted context omitted.
Sounds like event sourcing, for ui.
There's been many comparisons made to event sourcing, but the actual semantics of the dispatched actions are up to you. You might dispatch `USER_LOGGED_IN`, or you could dispatch `SET_USER_LOGGED_IN_STATUS` (ie, "past-tense event that occurred" vs "present-tense imperative set some state"). Redux doesn't care how you name your actions. There's been lots of arguments over how action semantics should be viewed. I recap…
Re: Learn how to use Redux step-by-step
#33Earlier quoted context omitted.
Not the one being asked, but I usually go with breakpoints in Dev Tools.
Breakpoints cannot replay . They can pause and continue playing. The inability to examine a time series of data after-the-fact and resume from any point makes this approach significantly, significantly worse. Like, I've done it just as you have, and I'd under no circumstances go back. It's so bad that I've basically built action-pattern systems in other languages (before using Redux, actually). Functional tooling and…