Skip to content

Commit a1ae872

Browse files
Remove code duplication
1 parent 2d8ec89 commit a1ae872

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/firestore/src/core/component_provider.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,7 @@ export class IndexedDbOfflineComponentProvider extends MemoryOfflineComponentPro
164164
gcScheduler!: GarbageCollectionScheduler | null;
165165

166166
async initialize(cfg: ComponentConfiguration): Promise<void> {
167-
this.sharedClientState = this.createSharedClientState(cfg);
168-
this.persistence = this.createPersistence(cfg);
169-
await this.persistence.start();
170-
this.gcScheduler = this.createGarbageCollectionScheduler(cfg);
171-
this.localStore = this.createLocalStore(cfg);
172-
167+
await super.initialize(cfg);
173168
await synchronizeLastDocumentChangeReadTime(this.localStore);
174169
}
175170

0 commit comments

Comments
 (0)