Open adminy opened 2 years ago
Rather than merging store with previous store I would like to have them separately. E.g.
const AuthStore = ({ children }) => <Provider store={pageStore}>{children}</Provider> const PageStore = ({ children }) => <Provider store={authStore}>{children}</Provider> render( <AuthStore> <PageStore> ... </PageStore> </AuthStore> , document.body)
But currently when I try to use the stores in a component:
const A = connect('page', 'auth')(({ page, auth, children }) => ( // page is defined but not auth )
it seems like Page provider overwrites the Auth provider.
Rather than merging store with previous store I would like to have them separately. E.g.
But currently when I try to use the stores in a component:
it seems like Page provider overwrites the Auth provider.