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.
1 parent 2bc2621 commit 434c110Copy full SHA for 434c110
packages/firestore/exp/src/api/database.ts
@@ -134,8 +134,12 @@ export class Firestore extends LiteFirestore
134
debugAssert(!this._terminated, 'Cannot invoke _terminate() more than once');
135
return this._queue.enqueueAndInitiateShutdown(async () => {
136
await super._terminate();
137
- this._credentials.removeChangeListener();
138
await removeComponents(this);
+
139
+ // `removeChangeListener` must be called after shutting down the
140
+ // RemoteStore as it will prevent the RemoteStore from retrieving
141
+ // auth tokens.
142
+ this._credentials.removeChangeListener();
143
});
144
}
145
0 commit comments