I wonder if there is possible to have multiple (not related) react-redux components on a single page app with different stores, does anyone know about issues with the provider and the router itself? I am trying to inject state (hydrate redux store with initial state) to componentB from componentA, both components are rendered on a SPA not iframes.
0
-
What is wrong with having two different reducers instead of two stores? – Shota Sep 23 '16 at 10:47
-
1Usually multiple stores are not a good practice, here's a bit of explaination – Carlo Sep 23 '16 at 10:47
-
@Shota the components are in different code bases, componentA just allow the user to configure state that can be injected to componentB via an initialization method. – Felix Sep 23 '16 at 10:49
-
Could you clarify further what "different code bases" means? – Shota Sep 23 '16 at 10:51
-
2Possible duplicate of Keep components between routes using react-router – Paul Sweatte Sep 23 '16 at 16:43