Dispatch Redux actions as events, not commands!
Domagoj Kriskovic
1675

Action type name describes an intention to change app state. If it is called from multiple places, use a specific property for that. For actions types, use imperative mood because you are going to change app state. What about onSomethingFooBlaWhatever? Use whateverFooBla, because you are going to change app state. OK, but what if my app is listening something? OK, listening has a side-effect, probably addFooBla to local state.

Redux actions have side-effects, which is a command.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.