Skip to content

Commit

Permalink
set firebase cache size to unlimited
Browse files Browse the repository at this point in the history
  • Loading branch information
andreymikhadyuk committed Dec 10, 2023
1 parent f85bee9 commit 6e3dee9
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({
cacheSizeBytes: firebase.firestore.CACHE_SIZE_UNLIMITED,
});

if (REACT_APP_ENV === Environment.Local) {
firebase.auth().useEmulator(local.firebase.authDomain);
Expand Down

0 comments on commit 6e3dee9

Please sign in to comment.