File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
packages/firestore/src/core Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ export class FirestoreClient {
150
150
} ) ;
151
151
}
152
152
153
- async getConfiguration ( ) : Promise < ComponentConfiguration > {
153
+ get configuration ( ) : ComponentConfiguration {
154
154
return {
155
155
asyncQueue : this . asyncQueue ,
156
156
databaseInfo : this . databaseInfo ,
@@ -222,7 +222,7 @@ export async function setOfflineComponentProvider(
222
222
client . asyncQueue . verifyOperationInProgress ( ) ;
223
223
224
224
logDebug ( LOG_TAG , 'Initializing OfflineComponentProvider' ) ;
225
- const configuration = await client . getConfiguration ( ) ;
225
+ const configuration = client . configuration ;
226
226
await offlineComponentProvider . initialize ( configuration ) ;
227
227
228
228
let currentUser = configuration . initialUser ;
@@ -254,10 +254,9 @@ export async function setOnlineComponentProvider(
254
254
const offlineComponentProvider = await ensureOfflineComponents ( client ) ;
255
255
256
256
logDebug ( LOG_TAG , 'Initializing OnlineComponentProvider' ) ;
257
- const configuration = await client . getConfiguration ( ) ;
258
257
await onlineComponentProvider . initialize (
259
258
offlineComponentProvider ,
260
- configuration
259
+ client . configuration
261
260
) ;
262
261
// The CredentialChangeListener of the online component provider takes
263
262
// precedence over the offline component provider.
You can’t perform that action at this time.
0 commit comments