Skip to content

Commit

Permalink
add experimentalForceLongPolling to firestore settings
Browse files Browse the repository at this point in the history
  • Loading branch information
andreymikhadyuk committed Apr 16, 2024
1 parent 7f744d5 commit 157e4c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/shared/utils/firebase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ 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);
Expand Down

0 comments on commit 157e4c7

Please sign in to comment.