-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
maintainabilitymake the project easier to work onmake the project easier to work on
Description
If a user selects an area by clicking on the map:
- The selected outlet is passed all the way up the
MapDisplaycomponent chain toApp - The selected outlet is passed all the way down the
AreaDisplaycomponent chain toAreaDisplay
3.AreaDisplayqueries the backend and finds the watershed upstream of that outlet - The watershed is passed all the way up the
AreaDisplaycomponent chain toApp - The watershed is passed all the way down the
DataDisplayandMapDisplaycomponent chains toDataMapand*DataDisplayfor analysis and viewing
App, the top level component, "owns" both region and outlet state, to facilitate all this note-passing, despite doing nothing with them except passing them around. Storing the selected outlet and region in a Zustand store would be a lot less complicated.
@rod-glover also suggests loading configuration files directly into the store. We've currently got four; three region-whitelists and one that records default map colours for variables.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
maintainabilitymake the project easier to work onmake the project easier to work on