You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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}": ...
}
}
Note:
We need a unique id for every object.
FAQ
## How to handle nested entities like DataPackages?
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
reduxjs/redux#99 - Best async loading technique (old issue)
Various options:
Structure for actions - use https://github.com/acdlite/flux-standard-action
The text was updated successfully, but these errors were encountered: