Skip to content

Multiple Stores Overwrite on last store #197

Description

@adminy

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions