anomaly-detection-kibana-plugin icon indicating copy to clipboard operation
anomaly-detection-kibana-plugin copied to clipboard

Improve use of redux across multiple components in the same page

Open yizheliu-amazon opened this issue 4 years ago • 1 comments

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

yizheliu-amazon avatar Apr 15 '20 22:04 yizheliu-amazon

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)

ohltyler avatar Oct 16 '20 00:10 ohltyler