Open aaaaahaaaaa opened 1 month ago
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.
(default)
The getFirestore SDK allows to select the database based on the ID: https://firebase.google.com/docs/reference/js/firestore_.md#getfirestore_48de6cb
getFirestore
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.
name
No response
Bump: https://firebase.google.com/docs/firestore/manage-databases
@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!
useDatabase()
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_48de6cbProposed 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