title: Firebase setDoc() not creating document
body: <p>I'm creating a new user with auth which is working then taking that newly create uid to create a new document with the same.</p>
  <pre><code>const currentUser = await auth.createUserWithEmailAndPassword(email, pass);
          console.log('user registered')
          await setDoc(doc(db, &quot;users&quot;, currentUser.user.uid),{
              forname: &quot;Peter&quot;,
              surname: &quot;Parker&quot;
          })
          console.log('user profile added')
      dispatch({type:'USER_REG', payload: currentUser});
  </code></pre>
  <p>The reg process fires off without issue as I get the console log then the program just waits, its like setDoc is running but never completing and I have no idea why.
  Any help is appreciated.</p>