-
Notifications
You must be signed in to change notification settings - Fork 926
Remove Multi-Tab overhead for non-multi-tab persistence #3362
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
Conversation
🦋 Changeset is good to goLatest commit: f22f300 We got this. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
], | ||
"variables": [] | ||
}, | ||
"sizeInBytes": 335737 | ||
"sizeInBytes": 311847 |
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.
This change drops about 24KB from enableIndexedDbPersistence
.
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.
Nice.
Binary Size ReportAffected SDKs
Test Logs |
…js-sdk into mrschmidt/optmultitab
], | ||
"variables": [] | ||
}, | ||
"sizeInBytes": 335737 | ||
"sizeInBytes": 311847 |
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.
Nice.
This PR changes the name of existing IndexedDbComponentProvider to MultiTabComponentProvider and adds a new IndexedDbComponentProvider, which is used in firestore-exp to reduce the code size for users that use
enabledIndexedDbPersistence
instead ofenableMultiTabIndexedDbPersistence
. Unfortunately, we have to use MultiTabComponentProvider in the old SDK since we don't know which mode the SDK will end up picking.