Various "notes to self" about we do Redux store if we do it again (from mid Feb)
Our app state (redux store):
{
# maybe only one data package - but what about publisher page ...
# theDataPackage: {},
packages: {
# id looks like "publisher/name"
"{id}": datapackageDescriptor - normalized ...
},
resources: {
"{dataPackageId}::{idx}
},
views: {
"{dpId}::{viewIndex}"
}
dataPackageResourcesByName: # do we need this ...
# data package resource data - maybe we should name that way ...
blobs: {
"{resourceId}": ...
}
}
Various "notes to self" about we do Redux store if we do it again (from mid Feb)
Our app state (redux store):
Note:
FAQ
How to handle nested entities like DataPackages?
http://redux.js.org/docs/recipes/reducers/NormalizingStateShape.html http://redux.js.org/docs/recipes/reducers/UpdatingNormalizedData.html
Asynchronous Data
http://redux.js.org/docs/advanced/AsyncActions.html
https://github.com/reactjs/redux/issues/99 - Best async loading technique (old issue)
Various options:
Structure for actions - use https://github.com/acdlite/flux-standard-action