From efc0f54a6b525c52c5dccf24b5bc43e277ac8c3d Mon Sep 17 00:00:00 2001 From: GrandSchtroumpf Date: Tue, 13 Jul 2021 14:33:12 +0200 Subject: [PATCH] use ShareReplayConfig --- projects/akita-ng-fire/package.json | 2 +- projects/akita-ng-fire/src/lib/collection/collection.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/akita-ng-fire/package.json b/projects/akita-ng-fire/package.json index 2cd7fed..acab410 100644 --- a/projects/akita-ng-fire/package.json +++ b/projects/akita-ng-fire/package.json @@ -1,6 +1,6 @@ { "name": "akita-ng-fire", - "version": "6.0.0", + "version": "6.0.1", "peerDependencies": { "@angular/common": ">=9.0.0 <13", "@angular/core": ">=9.0.0 <13", diff --git a/projects/akita-ng-fire/src/lib/collection/collection.service.ts b/projects/akita-ng-fire/src/lib/collection/collection.service.ts index 505ab20..c3c63bb 100644 --- a/projects/akita-ng-fire/src/lib/collection/collection.service.ts +++ b/projects/akita-ng-fire/src/lib/collection/collection.service.ts @@ -85,7 +85,7 @@ export class CollectionService, Entity if (!this.memo[path]) { this.memo[path] = this.db.doc(path).valueChanges().pipe( map(doc => this.formatFromFirestore(doc)), - shareReplay(1) + shareReplay({ bufferSize: 1, refCount: true }) ); } return this.memo[path];