-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[🐛] [Android] 🔥 Firestore useEmulator throws an error (instance has already been initialized) when refreshing with hot reload and metro bundler #5723
Comments
Can you please make sure you are on current versions and confirm it still happens? package.json says 12.0.0 but 12.8.0 is current Most important for prioritization, can you say if it still works afterwards? Stated differently: Yes this is an error and probably irritating but does it still actually work even after the error? If it is like #5650 it should not block you, I hope |
Hi, Now that you said it, it doesn't block: it only shows the Promise rejection call and then just act normally, so it still works afterwards. I'm more an iOS-person, so it's a little bit hard to dive into Java Android source code, but tell me if I can be of any help. |
Hey @ghivert thanks very much for checking whether it still works afterwards, this is definitely still an issue to work through, but it does help prioritize. Unfortunately (for those affected) it means I will likely not be able to get to this one (or #5650) quickly since they do seem to work after despite the acknowledged awful experience of it throwing up the promise rejection. I guess what we will need to do, in case anyone has time for a PR before I can examine it, is to either
|
Hello 👋, to help manage issues we automatically close stale issues.
|
covers case where javascript hot-reloads and loses state then calls again by tracking state of calls natively Fixes #5723
covers case where javascript hot-reloads and loses state then calls again by tracking state of calls natively Fixes #5723
Issue
Hi and thanks for the awesome libs!
I updated recently, and encountered a bug on Android: when hot-reloading the codebase and using the Firestore emulator, I got an error message saying the emulator has already been initialized.
Project Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6:iOS
Click To Expand
ios/Podfile
:# N/A
AppDelegate.m
:// N/A
Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:android/app/build.gradle
:android/settings.gradle
:MainApplication.java
:AndroidManifest.xml
:Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:12.7.5
Firebase
module(s) you're using that has the issue:Firestore
TypeScript
?Y & 4.3.5
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: