Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Improve use of redux across multiple components in the same page #23

Open
yizheliu-amazon opened this issue Apr 15, 2020 · 1 comment
Open
Labels
enhancement Enhance current feature for better performance, user experience, etc

Comments

@yizheliu-amazon
Copy link
Contributor

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

@sean-zheng-amazon sean-zheng-amazon added the enhancement Enhance current feature for better performance, user experience, etc label May 26, 2020
@ohltyler
Copy link
Contributor

ohltyler commented Oct 16, 2020

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Enhance current feature for better performance, user experience, etc
Projects
None yet
Development

No branches or pull requests

3 participants