[x] Add behaviour to set the master data config: MasterDataProvider, the provider put in the context the array which is named masterDataLoaders, you have to pass to the provider the following configuration: configuration = [{name, service, cacheDuration}] which will be passed in the masterDataLoaders
[x] Add behaviour to set the master data config: connectMasterData Connect the component to the load method of the master data. You have to pass an array of names in which you are interested. These names should correspond to the configuration you provide to the MasterDataProvider.
[x] Add an action to load a masterData: loadMasterData = (name, service, cacheDuration)
[x] Add a reducer to set a node in the redux state under the the name masterData
master data
MasterDataProvider
, the provider put in the context the array which is namedmasterDataLoaders
, you have to pass to the provider the following configuration:configuration = [{name, service, cacheDuration}]
which will be passed in themasterDataLoaders
connectMasterData
Connect the component to the load method of the master data. You have to pass an array of names in which you are interested. These names should correspond to the configuration you provide to theMasterDataProvider
.loadMasterData = (name, service, cacheDuration)
masterData