I am creating an app that contains 2 sub-app components. each one has it's own store/reducers etc. The sub-app components are rendered in a parent component that holds a "Main" redux-store with shared redux-props (eg. user name, is loading state etc.) I can't seem to use the redux-connect in the sub-app in order to access the "Main" store, so what I currently am using is react-context. I pass the "Main" store as context to each of the sub-app components. and when I wish to access the redux-state, I use
this.context.store.getState(...) or this.context.store.dispatch(...)
Is there a better, more esthetic way to do this? Is there a way to use the "redux-connect" accessing the "Main" redux-store?