developit / developit/unistore

Multiple Stores Overwrite on last store

Open
#197 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.8k
Forks
134
PR merge metrics
No merged PRs in 30d

Description

Rather than merging store with previous store I would like to have them separately. E.g.

```jsx
const AuthStore = ({ children }) => {children}
const PageStore = ({ children }) => {children}

render(


...


, document.body)

```

But currently when I try to use the stores in a component:
```jsx
const A = connect('page', 'auth')(({ page, auth, children }) => (
// page is defined but not auth
)
```

it seems like Page provider overwrites the Auth provider.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.