Open dancixx opened 3 years ago
I have imported the remote-config module from firebase and call after the initialize method, but I don't have access to remoteConfig method when I try to use useFirebase. Do you have any idea what can be wrong?
remote-config
firebase
remoteConfig
useFirebase
// core imports import firebase from 'firebase/app'; import 'firebase/firestore'; import 'firebase/database'; import 'firebase/auth'; import 'firebase/storage'; import 'firebase/functions'; import 'firebase/remote-config'; interface ConfigProps { apiKey: string; authDomain: string; databaseURL: string; projectId: string; storageBucket: string; messagingSenderId: string; appId: string; } firebase.initializeApp(config); firebase.remoteConfig() firebase.functions() firebase.firestore().settings({ experimentalForceLongPolling: true }); export default firebase;
I have imported the
remote-config
module fromfirebase
and call after the initialize method, but I don't have access toremoteConfig
method when I try to useuseFirebase
. Do you have any idea what can be wrong?