title: Firestore - unexpected reads
body: <p>there guys, I do have an interesting problem here and I would be really glad if any of you it will be able to help me with that.</p>
  
  <p>What's my app flow:</p>
  
  <ol>
  <li>Register with the email, password and some other details:</li>
  <li>User firebase in order to auth the user and create an account via email and password, at the same time I'm writing the custom data of the user to the database.</li>
  <li>Log in the user.</li>
  </ol>
  
  <p>That's it, that's all my basic logic, and how you can see I'm not doing any reading from the DB so far as I know.</p>
  
  <p>Now... the problem is that from some weird reason when I'm registering my user I'm going to the firebase console to see the usage of my DB and I will see something like... for one user which was created I will have 1 write (which is fine as I was expected) but also <strong>13-20 READS FROM DB</strong>. </p>
  
  <p>Now that's my question, <strong>WHY</strong> on earth I have <strong>reads</strong> on firestorm when I'm doing just auth and writes? </p>
  
  <p>Here it's my DB code which I'm using right now.</p>
  
  <pre><code>class DatabaseFirebase implements BaseDataBase {
    final FirebaseAuth _firebaseAuth = FirebaseAuth.instance;
    final FirebaseStorage _storage = FirebaseStorage.instance;
  
    FirebaseUser _firebaseUser;
    Firestore _firestore = Firestore.instance;
  
    @override
    Future&lt;String&gt; login(String email, String password) async {
      _firebaseUser = await _firebaseAuth.signInWithEmailAndPassword(
          email: email, password: password);
      return _firebaseUser.uid;
    }
  
    @override
    Future&lt;String&gt; register(String email, String password) async {
      _firebaseUser = await _firebaseAuth.createUserWithEmailAndPassword(
          email: email, password: password);
      return _firebaseUser.uid;
    }
  
    @override
    Future&lt;UserData&gt; getCurrentUser() async {
      if (_firebaseUser == null)
        _firebaseUser = await _firebaseAuth.currentUser();
      UserData user = UserData();
      user.email = _firebaseUser?.email;
      user.name = _firebaseUser?.displayName;
      return user;
    }
  
    @override
    Future&lt;void&gt; logout() async {
      _firebaseAuth.signOut();
    }
  
    @override
    Future&lt;void&gt; onAuthStateChanged(void Function(FirebaseUser) callback) async {
      _firebaseAuth.onAuthStateChanged.listen(callback);
    }
  
    @override
    Future&lt;void&gt; writeUser(UserData user) async {
      _firestore.collection("Users").add(user.toMap()).catchError((error) {
        print(error);
      });
    }
  }
  </code></pre>
  
  <p>If some of you know could you explain to me where/how I need to search in order to find this bug? Because how you can see I'm not using any read what so ever.</p>