Replies: 1 comment 1 reply
-
Passing the same store to multiple Providers works fine, yes. Can you clarify how these components are related, though? Normally there really should only be one |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I give same store for 2 providers, will it be work ? Looks like it works. But not sure If I overlooked some cases? If someone knows, any help would be appreciated!
Usecase:
I have some data which I use in Component 1 to render a bar chart and Componet 2 to render a pie chart. New Data can come asynchronously from backend and get stored in redux store. There are actions which can be triggered from the components which affects the data in the store.
Framework loads components. My components are in a Lib. I can ask the Framework to display Component 1 on the left side in the layout and display Component 2 on the right side in the layout. I need to export Component 1 and Component 2 separately and Framework loads those.
Beta Was this translation helpful? Give feedback.
All reactions