force long polling (#824)
This commit is contained in:
parent
7c8b33597a
commit
26aba26da5
|
@ -1,13 +1,18 @@
|
||||||
import { getFirestore } from '@firebase/firestore'
|
|
||||||
import { initializeApp, getApps, getApp } from 'firebase/app'
|
import { initializeApp, getApps, getApp } from 'firebase/app'
|
||||||
import { getStorage } from 'firebase/storage'
|
import { getStorage } from 'firebase/storage'
|
||||||
import { FIREBASE_CONFIG } from 'common/envs/constants'
|
import { FIREBASE_CONFIG } from 'common/envs/constants'
|
||||||
import { connectFirestoreEmulator } from 'firebase/firestore'
|
import {
|
||||||
|
connectFirestoreEmulator,
|
||||||
|
initializeFirestore,
|
||||||
|
} from 'firebase/firestore'
|
||||||
import { connectFunctionsEmulator, getFunctions } from 'firebase/functions'
|
import { connectFunctionsEmulator, getFunctions } from 'firebase/functions'
|
||||||
|
|
||||||
// Initialize Firebase
|
// Initialize Firebase
|
||||||
export const app = getApps().length ? getApp() : initializeApp(FIREBASE_CONFIG)
|
export const app = getApps().length ? getApp() : initializeApp(FIREBASE_CONFIG)
|
||||||
export const db = getFirestore()
|
|
||||||
|
export const db = initializeFirestore(app, {
|
||||||
|
experimentalForceLongPolling: true,
|
||||||
|
})
|
||||||
export const functions = getFunctions()
|
export const functions = getFunctions()
|
||||||
export const storage = getStorage()
|
export const storage = getStorage()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user