Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VERY WIP] Redux refactor #170

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Conversation

markspolakovs
Copy link
Member

@markspolakovs markspolakovs commented Oct 27, 2020

Move away from SET_XYZ Redux actions and to more XYZ_HAPPENED style - because firing multiple actions for the same "action" is a bit of a code smell (and it makes the action history harder to parse, and potentially less consistent - and also you have various bits of redux firing actions which conceptually belong in other modules).

At this point it's just a trial run, with BroadcastState, which is relatively small.

@markspolakovs markspolakovs marked this pull request as draft October 27, 2020 12:49
@mstratford
Copy link
Member

mstratford commented Oct 28, 2020

This definitely looks interesting, but is defo a big change in style. I have feelings about whether I like the more verbose "do this thing", rather than having random other parts of the codebase triggering by themselves based on action firings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants