From 25177c75d50b462c33076ecbc158684d9628224b Mon Sep 17 00:00:00 2001 From: Pavel Meyer Date: Mon, 24 Jun 2024 15:16:33 +0300 Subject: [PATCH 1/2] CW-firebase-quota-exceeded Update firebase settings --- src/shared/utils/firebase.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/shared/utils/firebase.tsx b/src/shared/utils/firebase.tsx index 457ad1515..7b3c812f2 100644 --- a/src/shared/utils/firebase.tsx +++ b/src/shared/utils/firebase.tsx @@ -12,9 +12,6 @@ interface FirebaseError extends Error { } firebase.initializeApp(config.firebase); -firebase.firestore().settings({ - experimentalForceLongPolling: true, -}); if (REACT_APP_ENV === Environment.Local) { firebase.auth().useEmulator(local.firebase.authDomain); @@ -28,8 +25,7 @@ if (REACT_APP_ENV === Environment.Local) { firebase .firestore() .enablePersistence({ - synchronizeTabs: true, - experimentalForceOwningTab: false, + synchronizeTabs: false, }) .catch((error) => { console.error("Error enabling persistence", error); From 0ba85090f582e22ea7e9428e010fa793b45e4803 Mon Sep 17 00:00:00 2001 From: Pavel Meyer Date: Tue, 25 Jun 2024 13:25:10 +0300 Subject: [PATCH 2/2] CW-firebase-quota-exceeded Added synchonizeTabs --- src/shared/utils/firebase.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/utils/firebase.tsx b/src/shared/utils/firebase.tsx index 7b3c812f2..b652bbd95 100644 --- a/src/shared/utils/firebase.tsx +++ b/src/shared/utils/firebase.tsx @@ -25,7 +25,8 @@ if (REACT_APP_ENV === Environment.Local) { firebase .firestore() .enablePersistence({ - synchronizeTabs: false, + synchronizeTabs: true, + experimentalForceOwningTab: false, }) .catch((error) => { console.error("Error enabling persistence", error);