Open
Description
What is the current behavior?
Passing multiple queries with the same collection
and storeAs
values only returns the first query result.
What is the expected behavior?
The results from all queries should be merged into the same storeAs
branch of the redux store as described in https://github.com/prescottprue/redux-firestore#where
// From v0.7.1 `state.firestore.data.onlineFriends === { [friendId]: 'sally' }`
['sally', 'john', 'peter'].map(friendId => ({
collection: 'users',
where: [
['id', '==', friendId],
['isOnline', '==', true]
]
storeAs: 'onlineFriends'
}));
Which version of redux-firestore are you using? What about other dependencies?
redux-firestore: >= 0.7.1 // works in 0.7.0
react-redux-firebase: 2.2.6
redux: 4.0.1
firebase: 5.7.0
react: 16.5.0
It's unclear if this is deliberate as it goes against what the docs say. Potentially related to fixes implemented in v0.7.1
for #107
Thanks for all the great work on this library! 🙌
Activity