I am using a firebase onSnapshot method to use realtime data in react native app and wrote a separate async function to listen to the firestore as given below, I am using useEffect to call this function and I want to return the subscriber method returning from the firestore as a cleanup function. I know that I can achieve that
Tag: firebase
Implementing Firebase, giving a “is not a function” error whatever I do
I am trying to improve a question that got a few downvotes yesterday evening. I am still running into the same problem. I am trying to work with Firebase realtime database. However it doesn’t matter how I try it, if I try to implement a function I get an error “this is not a function” and it doesn’t react to
How do i use a variable in firebase storage ref
I have built a function to get the download URL for the specified ref which can be found below: EDIT: EDIT : This code above this generates html, i made it so it makes a title on the button, when clicked it grabs the buttons title value, and then it passes that (val) variable to that function above, and then
Firebase Functions and API Keys
Are Firebase functions a safe place to store API keys for a React App? As an example, see the following template for an axios API call in a Firebase Cloud function: cloud function template edit: added text code snippet. The question whether or not it is secure to store the API key directly in this snippet, given it’s a firebase
How to fix Too many re-renders. React limits the number of renders to prevent an infinite loop
I am new to react and recently i got into this problem and i dont know how to solve it. it says Too many re-renders. React limits the number of renders to prevent an infinite loop. Hows it infinte loop? is it beacuase of on(“value”)? Plz help me to fix it, thank you. Answer You should do your Firebase staff
Getting blank page when React App is deployed and hosted by firebase
I am getting a blank page when I go to my website domain after deploying it through firebase – I know what I did wrong which was I said (yes) to the option of overwriting my index/html file when running firebase init. I have tried to solve it through various methods, I have replaced the index.html file in the build
Firebase Database code not working after window.location is inserted in JS
This is the code of JS file makeroom.js- The database part doesn’t work after the window.location code is put. Any solutions? Answer Writing data to the database is an asynchronous operation, and it may take some time. Right now you’re setting the window.location before the write is sent to the database. To ensure that write completes, you must wait with
React Firebase app auth service does not work in production
I have set up a React authorization through the Google account on my web app, that does not really work in production, however, works on the localhost. Here is the message from the dev mode (that perhaps may impact): The issue is that the google sign-in modal instantly disappears from the screen! What may be an error and the solution
Property or method “names” is not defined on the instance but referenced during render
i’m creating a CRUD using vuejs and Firebase, but I don’t know how to fix this error, [Vue warn]: Property or method “names” is not defined on the instance but referenced during render. So I can add information to the real time database, however, I can not show the data inside the database tables to my Vuejs application. someone can
How to allow access to photos for your web app in firebase
How can I authorise my app to be able to access images in my firebase storage without the user having to sign in? Should I just remove all read protections in the security rules for images, or is there a better way to do this altogether? For context this is so that the app can load images on the home