How to use emulator not more than once in the development? #6276
Unanswered
raviSussol
asked this question in
Q&A
Replies: 1 comment 2 replies
-
#5723 / #5860 dupe - no way currently, needs a PR to either store emulator usage state at native level in order to correctly ignore the error or just skip the underlying native call if useEmulator was already called and it's being called again |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been using the emulator to work with the firebase locally. I have setup the emulator configuration like below:
Now when I run the app the warning message appears below:
Cannot call useEmulator() after instance has already been initialized.
The message itself clear that the warning is due the emulators are being used multiple time due to react re-render behavior. But how can I make the emulator run only once to avoid this warning message in the startup? Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions