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

Code Refactoring #74

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Code Refactoring #74

wants to merge 4 commits into from

Conversation

deye9
Copy link
Contributor

@deye9 deye9 commented Nov 16, 2024

State Structure:

Added chargingStations to store the full list of charging stations (ChargingStations).

Added currentValue to store the currently selected ChargingStation.
Reducers:

setSelectedChargingStation: Updates both selectedChargingStation and currentValue when a station is selected.
setChargingStations: Allows setting the entire list of ChargingStations.
setCurrentValue: Directly updates currentValue.
Selectors:

getSelectedChargingStation: Returns the selected charging station.
getCurrentValue: Returns the current selected station.
getChargingStations: Returns the entire list of charging stations.

@deye9 deye9 changed the base branch from feature/enforce-mutability-on-tables to rc-0.2.0 November 16, 2024 20:09
Base automatically changed from rc-0.2.0 to main January 28, 2025 22:37
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.

1 participant