anomaly-detection-kibana-plugin
anomaly-detection-kibana-plugin copied to clipboard
Improve use of redux across multiple components in the same page
Right now we have issue with global redux used in same page but across multiple components. Current work around is to dispatch action correspondingly on those components. But the downside is that we are not able to tell if data is still loading or not in real time.
This is raised by comment in PR.
The potential solution is to leverage namespace
as per here
Another potential solution is to make the reducer functions and corresponding data more granular to allow for retrieving different results from the redux store, rather than needing to call the same function multiple times, and needing to store the results from multiple function calls (caveat here is that the different results needing to be retrieved are logically different enough where it makes sense to store them separately)