adding some things for the whole convo view

This commit is contained in:
Arjun Patel
2022-02-05 20:55:58 -08:00
parent 5c13954764
commit 291d3050f0
3 changed files with 46 additions and 20 deletions
+11 -11
View File
@@ -42,17 +42,17 @@ console.log("initialized firebase");
// Initialize firestore persistence for data caching
export const firestoreDb = getFirestore(app);
enableIndexedDbPersistence(firestoreDb).catch((err) => {
if (err.code == "failed-precondition") {
// Multiple tabs open, persistence can only be enabled
// in one tab at a a time.
// ...
} else if (err.code == "unimplemented") {
// The current browser does not support all of the
// features required to enable persistence
// ...
}
});
// enableIndexedDbPersistence(firestoreDb).catch((err) => {
// if (err.code == "failed-precondition") {
// // Multiple tabs open, persistence can only be enabled
// // in one tab at a a time.
// // ...
// } else if (err.code == "unimplemented") {
// // The current browser does not support all of the
// // features required to enable persistence
// // ...
// }
// });
setPersistence(getAuth(), browserSessionPersistence);