We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 266f2ec commit 0d95523Copy full SHA for 0d95523
src/remote-config/remote-config.ts
@@ -108,12 +108,20 @@ export class AngularFireRemoteConfig {
108
);
109
110
const existing$ = loadedRemoteConfig$.pipe(
111
- switchMap(rc => rc.activate().then(() => rc.getAll())),
+ switchMap(rc =>
112
+ rc.activate()
113
+ .then(() => rc.ensureInitialized())
114
+ .then(() => rc.getAll())
115
+ ),
116
filterOutDefaults
117
118
119
const fresh$ = loadedRemoteConfig$.pipe(
- switchMap(rc => zone.runOutsideAngular(() => rc.fetchAndActivate().then(() => rc.getAll()))),
120
+ switchMap(rc => zone.runOutsideAngular(() =>
121
+ rc.fetchAndActivate()
122
123
124
+ )),
125
126
127
0 commit comments