vocdoni / ui-components

Vocdoni UI components libs
GNU General Public License v3.0
3 stars 2 forks source link

Actions are not updating state #67

Closed elboletaire closed 1 year ago

elboletaire commented 1 year ago

When executing an election action (pause, stop, etc), the state should be updated on success. Right now we're directly using the client methods without doing anything to the current state.

Either call state actions directly in the Actions component, or create custom methods in the client that do so, this way people could benefit from them.

Edit: maybe it's a good moment for the election reducer refactor, since its state starts to be huge, and hard to maintain.