Unable to configure settings in provideRemoteConfig
- Langage dominant
- TypeScript
- Étoiles
- 7.8k
- Forks
- 2.2k
- Merge moyen
- 22 h 28 min
- PR mergées (30 j)
- 6
Description
### Version info
**Angular:**
^12.2.9
**Firebase:**
^9.1.2
**AngularFire:**
^7.1.0
**Other (e.g. Ionic/Cordova, Node, browser, operating system):**
"rxfire": "^6.0.2",
"rxjs": "^6.6.7",
Node LTS (14)
npm@6
### How to reproduce these conditions
**Failing test unit, Stackblitz demonstrating the problem**
**Steps to set up and reproduce**
Copy the following code in the `imports` modules of `AppModule`:
```ts
provideFirebaseApp(() => initializeApp(environment.firebase)),
provideAuth(() => getAuth()),
provideMessaging(() => getMessaging()),
provideAnalytics(() => getAnalytics()),
provideRemoteConfig(() => {
console.log('provideRemoteConfig')
const remoteConfig = getRemoteConfig();
if (isDevMode()) {
console.log('isDevMode')
remoteConfig.settings.minimumFetchIntervalMillis = 10 * 1000;
}
return remoteConfig;
}),
```
### Expected behavior
It should run the code (console.log, etc...) and set the fetch time in dev env.
### Actual behavior
Currently, it does nothing (no console output) and it's really hard to work with Remote Config since it's 12 hours throttle update with default settings...
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Reproduisez le problème avec l’extrait AppModule et suivez le point d’entrée de provideRemoteConfig avec les autres fonctions de fournisseur. Vérifiez pourquoi le callback n’effectue aucune journalisation et n’applique pas minimumFetchIntervalMillis, puis confirmez que le callback s’exécute et que l’intervalle de récupération de développement est appliqué.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, firebase, typescript
- Domaine
- cloud
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 55/100