Skip to main content

All Questions

Tagged with
185 votes
12 answers
199k views

Why is my React component is rendering twice?

I don't know why my React component is rendering twice. So I am pulling a phone number from params and saving it to state so I can search through Firestore. Everything seems to be working fine except ...
Raul Sanchez's user avatar
  • 1,919
47 votes
4 answers
16k views

Firestore to query by an array's field value

I'm trying to run a simple query, where I search for a document that contains a value inside an object array. For instance, look at my database structure: I want to run a query similar to this: db....
sisi mendel's user avatar
0 votes
2 answers
270 views

Firestore query returns no documents even though they are shown in the console in italics

I am trying to get all the document id from the (message) table but it returns undefined. However, when i try it with my another table (donor), it is working. I am wondering, in the message table, is ...
CLYap's user avatar
  • 15
1 vote
2 answers
2k views

Why did this code fail to send password reset link in firebase?

I am new to firebase and I am trying to handle firebase user authentication in React.js. I did manage to create users with email and passwords. But, now I would like to send the user an Email link to ...
Sadeed_pv's user avatar
  • 565
14 votes
3 answers
17k views

Is there any way to update a specific index from the array in Firestore

Is there any way to update a specific index from the array in Firebase/firestore? export const editComment = (comment) => { return (dispatch, getState, { getFirebase, getFirestore }) => { ...
Fhranis Holdt's user avatar
4 votes
2 answers
19k views

TypeError: _firebase__WEBPACK_IMPORTED_MODULE_2__.default.collection is not a function

This is my first time asking a question on StackOverflow. I am making a school project and I am a beginner at Firebase and JavaScript. I am trying to make a Tinder clone. React is telling me there's ...
Anthony's user avatar
  • 77
3 votes
2 answers
9k views

Adding new data to firebase users

I want to add a new data to firebase authentication which has data like displayname, phone number, image. But i want to add more such gender, birthday and more. is it possible to add new?
Wahyu Setiawan's user avatar
3 votes
2 answers
9k views

Navigate to screen after opening a notification?

I'm using Firebase cloud functions to send a remote notification to a specific device I got his FCM Token, and I receive it and works very well, Here is my code to send a notification by Cloud ...
DevAS's user avatar
  • 827
99 votes
28 answers
184k views

firebase.auth is not a function

I am using Webpack with firebase and firebase-admin. To install firebase I ran: npm install --save firebase I am importing firebase using: import * as firebase from 'firebase/app' import 'firebase/...
Eric Conner's user avatar
  • 10.7k
4 votes
2 answers
10k views

firestore.collection is not a function

this is my firebase.js import { initializeApp } from "firebase/app"; import { getFirestore } from "firebase/firestore"; import { getAuth } from "firebase/auth"; import {...
user avatar
79 votes
6 answers
47k views

Warning: It looks like you're using the development build of the Firebase JS SDK

I've integrated Firebase into my React.js app as such: https://firebase.google.com/docs/database/web/start fire.js: import firebase from 'firebase' var config = { apiKey: "####", authDomain: "#"...
etayluz's user avatar
  • 16.3k
4 votes
2 answers
4k views

React + Firestore : Return a variable from a query

I'm learning React and Firestore currently and am a bit stuck. I'm trying to retrieve a users name from a firestore collection by searching their uid. The following code is executed in a map of '...
Timothy Lentz's user avatar
9 votes
1 answer
15k views

Firebase-Admin, importing it to react application throws Module not found error

I'm developming simple React application which uses firebase admin. I have generated react application by using create react app. Then I have installed firebase-admin by using this npm command: npm ...
Mr.D's user avatar
  • 7,793
1 vote
3 answers
5k views

Update Array in React

I am coming from Angular 1.x and looking to update an unordered list with React / Redux. In console.log, I am seeing the array being updated, but it doesn't seem to bind to the DOM. I have the ...
Yasir's user avatar
  • 909
45 votes
6 answers
83k views

In Firebase when using push() How do I get the unique ID and store in my database [duplicate]

I am pushing data in firebase, but i want to store unique id in my database also . can somebody tell me,how to push the data with unique id. i am trying like this writeUserData() { var key= ...
komal deep singh chahal's user avatar

15 30 50 per page
1
2 3 4 5
39