-
Notifications
You must be signed in to change notification settings - Fork 894
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
Fixed issue where multiple calls to connectDataConnectEmulator causes an exception #8664
Conversation
🦋 Changeset detectedLatest commit: e7a7c2a The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1Affected Products
Test Logs |
…hub.com/firebase/firebase-js-sdk into mtewani/fix-non-idempotent-emulator-fdc
In SSR environments,
connectDataConnectEmulator
may be called more than once, andconnectDataConnect
only allows you to call it once.Because of this,
connectDataConnectEmulator
throws an error in SSR environments. This PR only throws an error if the new transport options are different than the old one and if the object has already been initialized.