-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
front: Atomic Update of Region State.
This commit overhauls the handling of the region state across various components, ensuring it's updated atomically. This change centralizes the state management of the selected region into a single state object within the RegionContext, replacing the previously separate state variables for selectedRegionId, selectedRegionName, and selectedRegionHasSubregions. Consequently, components like BreadcrumbNavigation, ListOfRegions, MainDisplay, and RegionMap have been updated to accommodate this new state structure. By consolidating the region state, we eliminate potential inconsistencies across components and streamline the management of the region data. Signed-off-by: Nikolay Martyanov <ohmspectator@gmail.com>
- Loading branch information
1 parent
208391b
commit 96b0ac1
Showing
5 changed files
with
54 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters