Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useFirestore should allow to select a non (default) database #1558

Open
aaaaahaaaaa opened this issue Jul 25, 2024 · 2 comments
Open

useFirestore should allow to select a non (default) database #1558

aaaaahaaaaa opened this issue Jul 25, 2024 · 2 comments

Comments

@aaaaahaaaaa
Copy link

aaaaahaaaaa commented Jul 25, 2024

What problem is this solving

As far as I can tell, there's no way to select a different Firestore database aside from the (default) one. Firestore multi database support is GA since February.

The getFirestore SDK allows to select the database based on the ID: https://firebase.google.com/docs/reference/js/firestore_.md#getfirestore_48de6cb

Proposed solution

The composable should take the Database ID as a param.

Note: the composable currently already takes a name as param, for the name of the Firebase App, which is confusing IMO.

Describe alternatives you've considered

No response

@aaaaahaaaaa aaaaahaaaaa changed the title useFirestore should allow to specify the database name useFirestore should allow to select a non (default) database Jul 25, 2024
@szulcus
Copy link

szulcus commented Aug 4, 2024

@szulcus
Copy link

szulcus commented Aug 24, 2024

@posva if you ever start working on it, I just wanted to let you know so you can add this functionality to useDatabase() as well. Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants