I have a function which makes a call to Firebase Firestore db and returns the value of the same. Here, the function returns the boolean value before the api fetching is comp