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 4df007f commit bfb11a5Copy full SHA for bfb11a5
packages/firestore/lite/src/api/database.ts
@@ -318,16 +318,17 @@ export function useFirestoreEmulator(
318
port: number
319
): void {
320
firestore = cast(firestore, FirebaseFirestore);
321
+ const settings = firestore._getSettings();
322
- if (firestore._getSettings().host !== DEFAULT_HOST) {
323
+ if (settings.host !== DEFAULT_HOST && settings.host !== host) {
324
logWarn(
325
'Host has been set in both settings() and useEmulator(), emulator host ' +
326
'will be used'
327
);
328
}
329
330
firestore._setSettings({
- ...firestore._getSettings(),
331
+ ...settings,
332
host: `${host}:${port}`,
333
ssl: false
334
});
0 commit comments