|
|
|
|
|
by atom_arranger
2363 days ago
|
|
Is it too late to change it? I’ve worked at a few agencies for a lot of companies using Redux. Teaching people to think of actions as events instead of setters has been a huge pain point. I would seriously suggest just find and replace the word action with event within Redux and the docs. Maybe have one page explaining the history behind this. |
|
_However_, we _do_ have a new "Style Guide" docs page, and in that we tell people to "Model Actions As 'Events', Not 'Setters'":
https://redux.js.org/style-guide/style-guide#model-actions-a...
We'll be adding more pages with info on that topic as part of our ongoing core docs rewrite. I'd suggest pointing people to this style guide entry, as well as these excellent presentations that go into more detail:
- https://github.com/dmmulroy/talks/blob/master/event-driven-r...
- https://youtu.be/K6OlKeQRCzo?t=2626 (video) / https://rangle.slides.com/yazanalaboudi/deck#/ (slides)