-
Notifications
You must be signed in to change notification settings - Fork 927
Make FirestoreClient tree-shakeable #3983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make FirestoreClient tree-shakeable #3983
Conversation
|
Binary Size ReportAffected SDKs
Test Logs |
d655125
to
6b8f384
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -676,7 +693,9 @@ export class Firestore implements PublicFirestore, FirebaseService { | |||
runTransaction<T>( | |||
updateFunction: (transaction: PublicTransaction) => Promise<T> | |||
): Promise<T> { | |||
return this.ensureClientConfigured().transaction( | |||
this.ensureClientConfigured(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assign to a temporary rather than referring to this._firestoreClient!
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
This is a mechanical refactor. The next PR will use these change to introduce the firestore-exp components to FirestoreClient.