New to Typescript. Wrote this function but I can’t figure out why it’s giving the error below. I commented the 2 lines that the errors are pointing to. 48:9 error Promises must be handled appropriately or explicitly marked as ignored with the void operator @typescript-eslint/no-floating-promises 61:9 error Promises must be handled appropriately or explicitly marked as ignored with the void
Tag: firebase
Why Firebase-Email-Verification doesn’t work?
I want that my Website sends an email to the user after the user enters his email and password. In my Code, user.sendEmailVerification(); works fine and the user gets an email. If the user verifies his email and clicks the btn2, the console should print “email is verified”, but this doesn’t happen. The console always prints “email is not verified”.
How do I display all of the images from my Firebase Storage in React Native without needing image names?
Hello i am trying to figure out how to display all of the images in a folder i have in Firebase Storage called “VerifiedPhotos”. I don’t want to reference them by image name like I did below because I have multiple images. How do I grab all the list of image URLS and display them to my screen in React
Query Firestore field/value using multiple multiple ‘where’ values?
I’m considering letting users follow other users in a app, and would have a feed of posts from people who they follow. Is there a way to query multiple ‘where’ statements at once, or compare to a List? Or would a alternate route need to be taken? Here is a example scenario in NodeJS: (.Any() is made up and what
Iterating collection and trying to get reference field inside documents .get() is not working
I am trying to get a collection then iterating over its documents. inside every document there’s a reference field for another collection document. Normally if i query for it then there is no problem but iterating creates a problem Following the field i want to get while iterating over organization-members However if i hard query then it works okay There
Cloud Function to Update a Record (value = value + newValue) whenever a value chages in Firebase Databse
I am new to Cloud Functions. I have a table ‘drivers’ with having few details. Now I want to write a Firebase Cloud Function which will trigger whenever the value in ‘drivers/{driverId}/history/{rideId}/rating’ is set. Update totalRating (drivers/{driverId}/totalRating) value to oldTotalRatingValue + NewTotalRatingValue. Any help or a reference would be appreciated. Thanks in Advance. =============My Approach====================== but my var oldRating doesn’t
Cannot read property ‘reduce’ of undefined data from firebase
I am trying to git the totalBalance of but i face error Cannot read property ‘reduce’ of undefined and in the same time i can iterate on the clients of the component the code is the below i thought the issue is clients is undefined but i don’t know the reson Answer This error is telling you that the clients
firebase storage execute code after multiple file upload
I’m trying to redirect to another page after all the file are done uploading to firebase storage. It keep executing the redirect code before finishing the uploads. Can’t figure out how to execute one after the other. This is a js scripts running on client side of the website. Answer Returned a promise from the uploadFile and storeDetail functions then
Upload into specific folder Firebase Storage NodeJS?
Hey I have found out how to upload into the firebase storage: As you can see with my bucket.upload function I can upload to firebase storage but it gets uploaded into the root folder and I want to put it under /foodImages/myfile.png for example Any ideas ? Answer Actually Google Cloud Storage does not have genuine “folders”. In the Cloud
DId firebase createUserWithEmailAndPassword() change the return value?
I have been using this code for a year now: However I had complaints over the last 2 days of new users having trouble creating a new login. I checked the “user” variable in this code and it looked like this: Which means that I now have to refer to uid by using user.user.uid instead of user.uid. I made this