firestore-react
firestore-react copied to clipboard
support multiple collections
Is it possible to use multiple collections? Something like this? It doesn't work though but there must be another way.
const AppWithData = createContainer(App, (db) => {
return {
users: db.collection('users');
results: db.collection('results')
}
})
Pretty sure firestore-react can only use one collection.
Looking into https://github.com/green-arrow/react-firestore which seems a bit more flexible but similar.