best way to call the db #82
Unanswered
ubresponsive
asked this question in
Q&A
Replies: 1 comment
-
You should be able to initialize Firebase yourself before initializing I'm also open to suggestions on how we can make this easier, while keeping in mind I'd like this package to stay fairly focused on auth. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I realise this is an auth module but curious on the best way to call the firestore dB without reinstantiating firebase,
for example if I include below, I get FirebaseError: Firebase: Firebase App named '[DEFAULT]' already exists (app/duplicate-app).
const firebaseApp=firebase.initializeApp(firebaseConfig);
const db=firebase.firestore();
export default db;
Beta Was this translation helpful? Give feedback.
All reactions