-
Notifications
You must be signed in to change notification settings - Fork 0
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
Raise configuration up #87
Comments
Not sure if this is a separate issue, or if it's a sub-bullet of your comment above... It would be useful if the selections ( It's not a high priority, but something to keep in mind as we move forward. |
I'm glad to hear you suggest this: it's been on my mind for a couple of months now. However it is different than configuration (which is more or less static), so I have created a new issue for it. |
Additionally: There are a lot of (more or less) app-wide configurations -- those not specific to a tab or other sub-area -- that are retrieved separately (e.g., variables, units, seasons). It would make sense to refactor the config file to place these under a single app-wide key at the top level of the config file. This app-wide config can be passed into every individual item that needs it. And, given that at least one item ( |
Too many components (and perhaps some data services) know about and draw directly on configuration information.
At present we have a fairly flat render hierarchy, somewhere around 3 levels:
App
builds much of the app out of the much lower level components.TwoDataMaps
which deliver a high-level view composed in several layers (in this case, much of the Maps tab content).Many of the lower level components get configuration information for themselves. Instead, this information should be obtained only by components at the highest levels of the hierarchy and provided as props to the lower level components.
This will have the following benefits:
The disadvantage of this change will be more props being passed around.
The text was updated successfully, but these errors were encountered: