-
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            sam-gc
          
      
      
        Feb 23, 2021 
      
    
    Replies: 1 comment 7 replies
-
| 
         This is interesting, thanks for the report. I'm not able to reproduce in vanilla JS using this code: const app = initializeApp(config);
getAuth(app);
getAuth(app);But this code fails in a different way: initializeApp(config);
initializeApp(config);  // Throws FirebaseError: Firebase: Firebase App named '[DEFAULT]' already exists (app/duplicate-app).Now I'm not sure how the hot reloading works and how global state is preserved / overwritten. I'll play with this a bit more if I find some time.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    7 replies
                  
                
            
      Answer selected by
        retronav
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    

This is interesting, thanks for the report. I'm not able to reproduce in vanilla JS using this code:
But this code fails in a different way:
Now I'm not sure how the hot reloading works and how global state is preserved / overwritten. I'll play with this a bit more if I find some time.