title: Unable to read data from firestore by using login ID using google authentication in REACT.my data is saved in firestore with current used ID
body: <p>[Unable to read data from firestore by using login ID using google authentication to REACT. I checked my data is saved in firestore with current used ID.]</p>
  <pre><code> db.collection('demo').where('uid', '=', firebase.auth().currentUser.uid)
       .get()
       .then(snapshot =&gt; {
        const demo = []
        snapshot.forEach(doc =&gt;{
          const data = doc.data()
          demo.push(data)
        })
        this.setState({demo:demo})
  })
      .catch(error =&gt; console.log(error))
      
      })
  </code></pre>
  <p>&lt;[1]: <a href="https://i.stack.imgur.com/ktOCW.png%3E" rel="nofollow noreferrer">https://i.stack.imgur.com/ktOCW.png&gt;</a></p>