developit / developit/unistore
Multiple Stores Overwrite on last store
Open
- 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.