@dereekb/dbx-firebase 13.11.9 → 13.11.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22,7 +22,7 @@ import { MatButtonModule } from '@angular/material/button';
|
|
|
22
22
|
import { toSignal, toObservable } from '@angular/core/rxjs-interop';
|
|
23
23
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
24
24
|
import { initializeApp } from 'firebase/app';
|
|
25
|
-
import {
|
|
25
|
+
import { persistentSingleTabManager, persistentMultipleTabManager, persistentLocalCache, initializeFirestore, connectFirestoreEmulator } from 'firebase/firestore';
|
|
26
26
|
import { getStorage, connectStorageEmulator } from 'firebase/storage';
|
|
27
27
|
import { getFunctions, connectFunctionsEmulator } from 'firebase/functions';
|
|
28
28
|
import { HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
@@ -287,7 +287,7 @@ class DbxFirebaseAuthService {
|
|
|
287
287
|
}
|
|
288
288
|
else {
|
|
289
289
|
obs = this._authState$.pipe(distinctUntilChanged(), switchMap((x) => {
|
|
290
|
-
return x
|
|
290
|
+
return x == null ? of('none') : delegateAuthUserStateObs;
|
|
291
291
|
}));
|
|
292
292
|
}
|
|
293
293
|
return obs;
|
|
@@ -2833,7 +2833,7 @@ function createDbxFirebaseFirestore(params) {
|
|
|
2833
2833
|
const { enableMultiTabIndexedDbPersistence, enableIndexedDbPersistence, persistentCacheSettings } = options;
|
|
2834
2834
|
const firestoreSettings = {};
|
|
2835
2835
|
if (enableIndexedDbPersistence !== false) {
|
|
2836
|
-
const tabManager = enableMultiTabIndexedDbPersistence
|
|
2836
|
+
const tabManager = enableMultiTabIndexedDbPersistence === false ? persistentSingleTabManager(undefined) : persistentMultipleTabManager();
|
|
2837
2837
|
firestoreSettings.localCache = persistentLocalCache({
|
|
2838
2838
|
tabManager,
|
|
2839
2839
|
...persistentCacheSettings
|