@dereekb/dbx-firebase 13.6.5 → 13.6.7
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.
|
@@ -2722,10 +2722,11 @@ function provideStorageFileFirestoreCollections(appCollection) {
|
|
|
2722
2722
|
* @returns EnvironmentProviders
|
|
2723
2723
|
*/
|
|
2724
2724
|
function provideDbxFirestoreCollection(config) {
|
|
2725
|
+
const params = config.firestoreContextCacheFactory ? { firestoreContextCacheFactory: config.firestoreContextCacheFactory } : undefined;
|
|
2725
2726
|
const providers = [
|
|
2726
2727
|
{
|
|
2727
2728
|
provide: DBX_FIRESTORE_CONTEXT_TOKEN,
|
|
2728
|
-
useFactory: clientFirebaseFirestoreContextFactory,
|
|
2729
|
+
useFactory: (firestore) => clientFirebaseFirestoreContextFactory(firestore, params),
|
|
2729
2730
|
deps: [Firestore]
|
|
2730
2731
|
},
|
|
2731
2732
|
{
|