vuejs / vuefire

🔥 Firebase bindings for Vue.js
https://vuefire.vuejs.org
MIT License
3.82k stars 323 forks source link

Use multiple firestore databases #1486

Closed aronsuarez closed 3 months ago

aronsuarez commented 5 months ago

What problem is this solving

Firestore supports multiple databases, it would be nice to use useFirestore() with multiple databases.

Proposed solution

Add a second parameter for databaseId

Describe alternatives you've considered

No response

posva commented 4 months ago

It seems that this feature is at least partially in beta (https://firebase.google.com/docs/reference/js/firestore_). For the time being you should be able to create your own useFirestore() with more parameters. It should be a one line function like the one in the repo.