We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a6c6cff + 3b05b1c commit e9416c9Copy full SHA for e9416c9
packages/firestore/src/api/database.ts
@@ -277,8 +277,10 @@ export class Firestore
277
}
278
279
terminate(): Promise<void> {
280
- (this.app as _FirebaseApp)._removeServiceInstance('firestore');
281
- (this.app as _FirebaseApp)._removeServiceInstance('firestore-exp');
+ if (this._appCompat) {
+ (this._appCompat as _FirebaseApp)._removeServiceInstance('firestore');
282
+ (this._appCompat as _FirebaseApp)._removeServiceInstance('firestore-exp');
283
+ }
284
return this._delegate._delete();
285
286
0 commit comments