I appear to be having difficulty comprehending the documentation on handling multiple stores. This is in my APP component ...
static getStores() {
return [InventoryStore, CompanyInfoStore];
}
static getPropsFromStores() {
return {
...InventoryStore.getState(),
...CompanyInfoStore.getState()
};
}
componentDidMount() {
const clientId = this.state.clientId;
InventoryActions.getAll(clientId);
CompanyInfoActions.getAll(clientId);
}
InventoryActions is not being 'hit' and the only items in my props.items are company info.
Anyone know how to correct this?
Many Thanks!